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

Disassembly:
sub esp, 8
mov edx, ecx
push ebx
push ebp
push esi
mov ebx, dword [edx + 8]
push edi
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x78], 0xfffffffd
lea ebp, [eax + eax*4]
mov eax, 0x7fffff00
add ebp, ebp
cmove ebp, eax
mov eax, dword [ebx + 8]
cmp eax, ecx
jbe 0x49d2c0
sub eax, ecx
add dword [ebx + 0x30], eax
nop dword [eax]
mov edi, dword [edx + 8]
movzx eax, byte [edi + 0x11]
cmp eax, 5
ja case.default.0x49d2d0
jmp dword [eax*4 + 0x49d54c]
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
test byte [eax + 4], 3
je 0x49d302
push eax
push edi
call fcn.0049db00
mov eax, dword [edi + 0x7c]
add esp, 8
mov eax, dword [eax + 0x24]
test byte [eax + 4], 3
je 0x49d315
push eax
push edi
call fcn.0049db00
add esp, 8
mov eax, dword [edi + 0xbc]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x49d339
mov eax, dword [edi + 0xb8]
test byte [eax + 4], 3
je 0x49d339
push eax
push edi
call fcn.0049db00
add esp, 8
push edi
call fcn.0049dc00
mov eax, dword [edi + 0xfc]
add esp, 4
test eax, eax
je 0x49d35f
mov eax, dword [eax + 0x14]
test byte [eax + 4], 3
je 0x49d35f
push eax
push edi
call fcn.0049db00
add esp, 8
mov byte [edi + 0x11], 1
jmp case.default.0x49d2d0
cmp dword [edi + 0x20], 0
je 0x49d37c
push edi
call fcn.0049eda0
add esp, 4
jmp 0x49d4ce
mov byte [edi + 0x11], 2
jmp case.default.0x49d2d0
cmp dword [edi + 0xf8], 0
je 0x49d398
mov eax, 0x7fffff00
jmp 0x49d4ce
push edx
push edi
call fcn.0049d6b0
add esp, 8
mov byte [edi + 0x11], 3
mov dword [edi + 0x14], 0
jmp case.default.0x49d2d0
mov ecx, dword [edi + 0x14]
mov esi, dword [edi + 8]
lea eax, [ecx + 1]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x58]
lea eax, [eax + ecx*4]
push eax
push edi
call fcn.0049e260
mov eax, dword [edi + 0x14]
add esp, 8
cmp eax, dword [edi + 0x5c]
jbe 0x49d3da
mov byte [edi + 0x11], 4
mov eax, dword [edi + 8]
sub eax, esi
add dword [edi + 0x34], eax
mov eax, 0xa
jmp 0x49d4ce
mov esi, dword [edi + 8]
push 0x28
push dword [edi + 0x1c]
push edi
call fcn.0049e1c0
mov ecx, dword [edi + 8]
add esp, 0xc
sub ecx, esi
mov dword [edi + 0x1c], eax
add dword [edi + 0x34], ecx
cmp dword [eax], 0
jne 0x49d452
mov ecx, dword [edi + 0x5c]
mov eax, ecx
shr eax, 2
cmp dword [edi + 0x60], eax
ja 0x49d431
cmp ecx, 0x1ff
jbe 0x49d431
shr ecx, 1
push ecx
push dword [esp + 0x18]
call fcn.004a0220
add esp, 8
cmp dword [edi + 0x2c], 0
je 0x49d447
mov word [edi + 0x11], 0x105
mov eax, 0x190
jmp 0x49d4ce
mov byte [edi + 0x11], 0
mov dword [edi + 0x30], 0
mov eax, 0x190
jmp 0x49d4ce
cmp dword [edi + 0x2c], 0
je 0x49d4a9
cmp dword [edi + 0xf8], 0
mov esi, dword [edi + 8]
je 0x49d472
mov eax, 0x7fffff00
jmp 0x49d4ce
push edx
call fcn.0049da10
mov edx, dword [edi + 8]
add esp, 4
cmp esi, edx
jb 0x49d494
mov ecx, dword [edi + 0x34]
mov eax, esi
sub eax, edx
cmp ecx, eax
jbe 0x49d494
sub ecx, esi
add ecx, edx
mov dword [edi + 0x34], ecx
mov eax, dword [edi + 0x34]
cmp eax, 0x64
jbe 0x49d4a2
add eax, 0xffffff9c
mov dword [edi + 0x34], eax
mov eax, 0x64
jmp 0x49d4ce
cmp byte [edi + 0x12], 0
jne 0x49d4c1
mov eax, dword [edi + 0xfc]
push dword [eax + 0x14]
push edx
call fcn.004a0ee0
add esp, 8
mov byte [edi + 0x11], 0
mov dword [edi + 0x30], 0
xor eax, eax
sub ebp, eax
cmp byte [ebx + 0x11], 0
je 0x49d526
mov edx, dword [esp + 0x14]
test ebp, ebp
jg 0x49d2c0
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 8]
cmp eax, 0x400
jae 0x49d50a
pop edi
lea eax, [ecx + 0x400]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [ebx + 0x78], eax
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 8
ret
pop edi
add eax, 0xfffffc00
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0xc]
pop esi
mov dword [ebx + 0x78], eax
xor eax, eax
pop ebp
pop ebx
add esp, 8
ret
mov eax, 0x51eb851f
mul dword [ebx + 0x34]
mov eax, dword [esp + 0x10]
shr edx, 5
imul edx, dword [ebx + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x78], eax
mov eax, 1
pop ebx
add esp, 8
ret