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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
mov ebx, dword [esi + 4]
test ebx, ebx
lea ebp, [ebx*4 - 4]
je 0x4a032f
lea esi, [esi]
mov dword [esp + 4], 0x20
mov eax, dword [esi]
sub ebx, 1
mov eax, dword [eax + ebp]
sub ebp, 4
mov dword [esp], eax
call fcn.006eb350
test ebx, ebx
jne 0x4a0310
mov dword [esi + 4], 0
mov edx, dword [edi + 4]
test edx, edx
je 0x4a0550
xor ebx, ebx
jmp 0x4a0370
mov edx, dword [esi]
mov dword [edx + eax*4], ebx
add eax, 1
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
add ebx, 1
test eax, eax
je 0x4a0367
mov dword [esp], eax
call fcn.006eb310
cmp ebx, dword [edi + 4]
jae 0x4a0550
mov dword [esp + 4], 0x2e
mov eax, dword [edi]
lea ebp, [ebx + ebx]
add eax, ebp
mov dword [esp], eax
call fcn.00470140
test eax, eax
js 0x4a04f5
add eax, ebx
mov dword [esp + 0x14], eax
js 0x4a04f5
add ebp, dword [edi]
sub eax, ebx
lea ecx, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.00472310
sub esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a0530
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x38], 0
mov byte [esp + 0x39], 0
mov byte [esp + 0x3a], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x3b], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x40], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov byte [esp + 0x41], 1
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0
mov byte [esp + 0x44], 0
mov dword [esp], eax
mov byte [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], 1
mov byte [esp + 0x36], 1
mov byte [esp + 0x37], 1
mov byte [esp + 0x3e], 1
mov byte [esp + 0x3f], 1
mov byte [esp + 0x3d], 1
call fcn.0049ffc0
test al, al
je 0x4a0530
mov dword [esp], 0x20
call fcn.006eb380
mov ebx, eax
mov eax, dword [esp + 0x30]
mov dword [ebx], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4a0345
mov edx, eax
shr edx, 2
lea ebp, [eax + edx + 1]
cmp ebp, 0x1fffffff
ja 0x4a055d
lea eax, [ebp*4]
mov dword [esp], eax
call fcn.006eb360
mov edx, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x4a0501
test ecx, ecx
je 0x4a04eb
mov dword [esp], ecx
mov dword [esp + 0x18], edx
call fcn.006eb310
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov dword [esi], edx
mov dword [esi + 8], ebp
jmp 0x4a0347
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
jmp 0x4a039b
shl eax, 2
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
call fcn.005e73f8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x4a04d8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a0540
mov dword [esp], eax
call fcn.006eb310
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.006ebc70
mov edx, dword [esp + 0x24]
mov ebx, eax
test edx, edx
je 0x4a0574
mov dword [esp], edx
call fcn.006eb310
mov dword [esp], ebx
call fcn.005d7530
lea esi, [esi]