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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x7c]
test eax, eax
mov dword [esp + 0x3c], eax
je 0x4a0590
test ecx, ecx
je 0x4a0590
add eax, ecx
cmp eax, 2
je 0x4a0558
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x4a05a0
mov ecx, eax
shr eax, 0x1f
mov ebx, dword [esp + 0x4c]
add eax, ecx
sar eax, 1
imul esi, eax, 0x38
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x38]
add esi, dword [esp + 0x34]
sub ebx, eax
sar ebx, 3
imul ebx, ebx, 0xb6db6db7
test ebx, ebx
jle 0x4a062d
mov edi, eax
mov dword [esp + 0x30], esi
jmp 0x4a049c
sub ebx, esi
lea edi, [ebp + 0x38]
sub ebx, 1
test ebx, ebx
jle 0x4a04c1
mov esi, ebx
mov eax, dword [esp + 0x30]
sar esi, 1
imul edx, esi, 0x38
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
lea ebp, [edi + edx]
mov dword [esp], ebp
call eax
test al, al
jne 0x4a0490
mov ebx, esi
test ebx, ebx
jg 0x4a049c
mov eax, edi
sub eax, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
mov edx, eax
mov dword [esp + 0x48], eax
sar edx, 3
imul eax, edx, 0xb6db6db7
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
mov byte [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00499630
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
add ebx, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 0xc], eax
call fcn.004a03f0
sub dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x40]
sub dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x2c]
je 0x4a0590
test eax, eax
je 0x4a0590
mov eax, dword [esp + 0x2c]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
cmp eax, 2
jne 0x4a0448
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
test al, al
je 0x4a0590
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004a11d0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x38]
mov eax, ecx
mov edi, ebx
shr eax, 0x1f
add eax, ecx
sar eax, 1
mov dword [esp + 0x44], eax
imul eax, eax, 0x38
add edi, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
sub ebx, eax
sar ebx, 3
imul ebx, ebx, 0xb6db6db7
test ebx, ebx
jle 0x4a0646
mov esi, eax
mov dword [esp + 0x30], edi
jmp 0x4a05ec
sub ebx, edi
lea esi, [ebp + 0x38]
sub ebx, 1
test ebx, ebx
jle 0x4a0611
mov edi, ebx
mov eax, dword [esp + 0x30]
sar edi, 1
imul edx, edi, 0x38
mov dword [esp], eax
mov eax, dword [esp + 0x28]
lea ebp, [esi + edx]
mov dword [esp + 4], ebp
call eax
test al, al
je 0x4a05e0
mov ebx, edi
test ebx, ebx
jg 0x4a05ec
mov eax, esi
sub eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
sar eax, 3
imul eax, eax, 0xb6db6db7
mov dword [esp + 0x40], eax
jmp 0x4a04de
mov edi, dword [esp + 0x38]
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
jmp 0x4a04de
mov esi, dword [esp + 0x34]
mov dword [esp + 0x40], 0
jmp 0x4a04de