Function at 0x49e360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x528e48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, esi
jg 0x49e3aa
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebx + 0x40]
test al, al
je 0x49e3cf
cmp dword [ebx + 0x18c], esi
jne 0x49e3cf
push ebx
mov dword [ebx + 0x18c], 1
call fcn.004a14b0
dec dword [ebx + 0x18c]
cmp byte [ebx + 0x40], 0
jne 0x49e394
cmp dword [ebx + 0x184], esi
jne 0x49e394
lea ecx, [ebx + 0x194]
mov dword [ebx + 0x184], 1
mov byte [ebx + 0x190], 0
call fcn.0049a9d0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esp, 0x28
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov edi, esp
mov dword [esp + 0x60], eax
mov ecx, 0xa
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], 0x100000
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004a1630
cmp byte [ebx + 0x190], 0
je 0x49e473
cmp dword [ebx + 0x1ac], 0x10
jb 0x49e461
mov edx, dword [ebx + 0x198]
mov dword [ebp + 0xc], edx
jmp 0x49e46a
lea eax, [ebx + 0x198]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebx + 0x1a8]
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
xor eax, eax
sub esp, 0x28
mov dword [esp + 0x6c], ecx
mov edi, esp
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov ecx, 0xa
lea esi, [esp + 0x5c]
mov dword [esp + 0x5c], 0x410
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004a1630
mov edx, dword [ebx + 0x70]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x60]
cmp eax, dword [ebx + 0x58]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
lea edi, [ebx + 0x10]
lea eax, [esp + 0x16]
sete byte [esp + 0x17]
mov byte [esp + 0x16], 0
call fcn.004a5c30
cmp byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
je 0x49e511
cmp byte [ebx + 0x48], 0
je 0x49e511
xor edi, edi
push edi
push ebx
call fcn.004a1570
jmp 0x49e513
xor edi, edi
cmp dword [ebx + 0x17c], esi
jle 0x49e521
mov dword [ebx + 0x17c], esi
movzx ecx, byte [esp + 0xe]
mov edx, dword [ebx + 0x70]
mov eax, dword [edx + 8]
mov edx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
sub eax, dword [esp + 0x10]
and ecx, 0x2000
or ecx, 0x11
dec eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
sub esp, 0x28
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov edi, esp
mov dword [esp + 0x64], edx
mov dword [esp + 0x6c], eax
mov ecx, 0xa
lea esi, [esp + 0x5c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004a1630
cmp byte [ebx + 0x190], 0
je 0x49e5be
xor eax, eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1c], al
mov dword [esp + 0x68], eax
lea eax, [ebx + 0x194]
push eax
lea ecx, [esp + 0x1c]
call fcn.00415570
lea ecx, [esp + 0x18]
call fcn.00404000
dec dword [ebx + 0x184]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc