Function at 0x4a4190
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 0x4a41d3
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 0x4a41e4
cmp al, 4
jne 0x4a43cf
mov esi, dword [ebp + 8]
movzx eax, byte [esi + 0x11]
cmp eax, 5
ja case.default.0x4a41f0
jmp dword [eax*4 + 0x4a4400]
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 0x4a4222
push eax
push esi
call fcn.004a32d0
mov eax, dword [esi + 0x7c]
add esp, 8
mov eax, dword [eax + 0x24]
test byte [eax + 4], 3
je 0x4a4235
push eax
push esi
call fcn.004a32d0
add esp, 8
mov eax, dword [esi + 0xbc]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x4a4259
mov eax, dword [esi + 0xb8]
test byte [eax + 4], 3
je 0x4a4259
push eax
push esi
call fcn.004a32d0
add esp, 8
push esi
call fcn.004a33d0
mov eax, dword [esi + 0xfc]
add esp, 4
test eax, eax
je 0x4a427f
mov eax, dword [eax + 0x14]
test byte [eax + 4], 3
je 0x4a427f
push eax
push esi
call fcn.004a32d0
add esp, 8
mov byte [esi + 0x11], 1
jmp case.default.0x4a41f0
cmp dword [esi + 0x20], 0
je 0x4a429c
push esi
call fcn.004a4570
add esp, 4
jmp case.default.0x4a41f0
mov byte [esi + 0x11], 2
jmp case.default.0x4a41f0
cmp dword [esi + 0xf8], 0
jne case.default.0x4a41f0
push ebp
push esi
call fcn.004a2e80
add esp, 8
mov byte [esi + 0x11], 3
mov dword [esi + 0x14], 0
jmp case.default.0x4a41f0
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.004a3a30
mov eax, dword [esi + 0x14]
add esp, 8
cmp eax, dword [esi + 0x5c]
jbe 0x4a42f4
mov byte [esi + 0x11], 4
mov eax, dword [esi + 8]
sub eax, edi
add dword [esi + 0x34], eax
jmp case.default.0x4a41f0
mov edi, dword [esi + 8]
push 0x28
push dword [esi + 0x1c]
push esi
call fcn.004a3990
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.0x4a41f0
mov ecx, dword [esi + 0x5c]
mov eax, ecx
shr eax, 2
cmp dword [esi + 0x60], eax
ja 0x4a4347
cmp ecx, 0x1ff
jbe 0x4a4347
shr ecx, 1
push ecx
push ebp
call fcn.004a59f0
add esp, 8
cmp dword [esi + 0x2c], 0
je 0x4a43bf
mov word [esi + 0x11], 0x105
jmp case.default.0x4a41f0
cmp dword [esi + 0x2c], 0
je 0x4a43a7
cmp dword [esi + 0xf8], 0
mov edi, dword [esi + 8]
jne case.default.0x4a41f0
push ebp
call fcn.004a31e0
mov edx, dword [esi + 8]
add esp, 4
cmp edi, edx
jb 0x4a4390
mov ecx, dword [esi + 0x34]
mov eax, edi
sub eax, edx
cmp ecx, eax
jbe 0x4a4390
sub ecx, edi
add ecx, edx
mov dword [esi + 0x34], ecx
mov eax, dword [esi + 0x34]
cmp eax, 0x64
jbe case.default.0x4a41f0
add eax, 0xffffff9c
mov dword [esi + 0x34], eax
jmp case.default.0x4a41f0
cmp byte [esi + 0x12], 0
jne 0x4a43bf
mov eax, dword [esi + 0xfc]
push dword [eax + 0x14]
push ebp
call fcn.004a66b0
add esp, 8
mov byte [esi + 0x11], 0
mov dword [esi + 0x30], 0
jmp case.default.0x4a41f0
pop edi
mov byte [ebx + 0x11], 0
pop esi
push ebp
call fcn.004a34f0
add esp, 4
cmp byte [ebx + 0x11], 0
jne 0x4a43d5
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