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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x78]
cmp byte [ebx + 0x11], 2
mov dword [esp + 0xc], eax
mov dword [ebx + 0x78], 0xfffffffd
ja 0x49ea03
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov byte [ebx + 0x11], 3
mov dword [ebx + 0x14], 0
push esi
push edi
mov al, byte [ebx + 0x11]
cmp al, 3
je 0x49ea14
cmp al, 4
jne 0x49ebff
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x11]
cmp eax, 5
ja case.default.0x49ea20
jmp dword [eax*4 + 0x49ec30]
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
test byte [eax + 4], 3
je 0x49ea52
push eax
push esi
call fcn.0049db00
mov eax, dword [esi + 0x7c]
add esp, 8
mov eax, dword [eax + 0x24]
test byte [eax + 4], 3
je 0x49ea65
push eax
push esi
call fcn.0049db00
add esp, 8
mov eax, dword [esi + 0xbc]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x49ea89
mov eax, dword [esi + 0xb8]
test byte [eax + 4], 3
je 0x49ea89
push eax
push esi
call fcn.0049db00
add esp, 8
push esi
call fcn.0049dc00
mov eax, dword [esi + 0xfc]
add esp, 4
test eax, eax
je 0x49eaaf
mov eax, dword [eax + 0x14]
test byte [eax + 4], 3
je 0x49eaaf
push eax
push esi
call fcn.0049db00
add esp, 8
mov byte [esi + 0x11], 1
jmp case.default.0x49ea20
cmp dword [esi + 0x20], 0
je 0x49eacc
push esi
call fcn.0049eda0
add esp, 4
jmp case.default.0x49ea20
mov byte [esi + 0x11], 2
jmp case.default.0x49ea20
cmp dword [esi + 0xf8], 0
jne case.default.0x49ea20
push ebp
push esi
call fcn.0049d6b0
add esp, 8
mov byte [esi + 0x11], 3
mov dword [esi + 0x14], 0
jmp case.default.0x49ea20
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x58]
lea eax, [eax + ecx*4]
push eax
push esi
call fcn.0049e260
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, dword [esi + 0x5c]
jbe 0x49eb24
mov byte [esi + 0x11], 4
mov eax, dword [esi + 8]
sub eax, edi
add dword [esi + 0x34], eax
jmp case.default.0x49ea20
mov edi, dword [esi + 8]
push 0x28
push dword [esi + 0x1c]
push esi
call fcn.0049e1c0
mov ecx, dword [esi + 8]
add esp, 0xc
sub ecx, edi
mov dword [esi + 0x1c], eax
add dword [esi + 0x34], ecx
cmp dword [eax], 0
jne case.default.0x49ea20
mov ecx, dword [esi + 0x5c]
mov eax, ecx
shr eax, 2
cmp dword [esi + 0x60], eax
ja 0x49eb77
cmp ecx, 0x1ff
jbe 0x49eb77
shr ecx, 1
push ecx
push ebp
call fcn.004a0220
add esp, 8
cmp dword [esi + 0x2c], 0
je 0x49ebef
mov word [esi + 0x11], 0x105
jmp case.default.0x49ea20
cmp dword [esi + 0x2c], 0
je 0x49ebd7
cmp dword [esi + 0xf8], 0
mov edi, dword [esi + 8]
jne case.default.0x49ea20
push ebp
call fcn.0049da10
mov edx, dword [esi + 8]
add esp, 4
cmp edi, edx
jb 0x49ebc0
mov ecx, dword [esi + 0x34]
mov eax, edi
sub eax, edx
cmp ecx, eax
jbe 0x49ebc0
sub ecx, edi
add ecx, edx
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0x34]
cmp eax, 0x64
jbe case.default.0x49ea20
add eax, 0xffffff9c
mov dword [esi + 0x34], eax
jmp case.default.0x49ea20
cmp byte [esi + 0x12], 0
jne 0x49ebef
mov eax, dword [esi + 0xfc]
push dword [eax + 0x14]
push ebp
call fcn.004a0ee0
add esp, 8
mov byte [esi + 0x11], 0
mov dword [esi + 0x30], 0
jmp case.default.0x49ea20
pop edi
mov byte [ebx + 0x11], 0
pop esi
push ebp
call fcn.0049dd20
add esp, 4
cmp byte [ebx + 0x11], 0
jne 0x49ec05
mov eax, 0x51eb851f
mul dword [ebx + 0x34]
mov eax, dword [esp + 0xc]
shr edx, 5
imul edx, dword [ebx + 0x3c]
pop ebp
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x78], eax
pop ebx
ret