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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x4a670f
lea esi, [ebx*4 - 4]
lea esi, [esi]
mov dword [esp + 4], 0x20
mov eax, dword [edi]
sub ebx, 1
mov eax, dword [eax + esi]
sub esi, 4
mov dword [esp], eax
call fcn.006fec10
test ebx, ebx
jne 0x4a66f0
mov dword [edi + 4], 0
mov edx, dword [ebp + 4]
xor ebx, ebx
test edx, edx
je 0x4a6885
lea edx, [ebx + ebx]
mov dword [esp + 4], 0x2e
mov eax, edx
add eax, dword [ebp]
mov dword [esp + 0x14], edx
mov dword [esp], eax
call fcn.004718f0
test eax, eax
mov edx, dword [esp + 0x14]
js 0x4a6892
add eax, ebx
mov esi, eax
js 0x4a6892
add edx, dword [ebp]
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00473ae0
sub esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a6930
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.004a6360
test al, al
je 0x4a6930
mov dword [esp], 0x20
call fcn.006fec40
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 [edi + 4]
cmp eax, dword [edi + 8]
lea ecx, [eax + 1]
je 0x4a68b0
mov edx, dword [edi]
mov dword [edx + eax*4], ebx
mov eax, dword [esp + 0x24]
lea ebx, [esi + 1]
mov dword [edi + 4], ecx
test eax, eax
je 0x4a68a0
mov dword [esp], eax
call fcn.006febd0
cmp ebx, dword [ebp + 4]
jb 0x4a6723
mov eax, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp + 4]
jmp 0x4a6755
cmp ebx, dword [ebp + 4]
jb 0x4a6723
mov eax, 1
jmp 0x4a688a
shr eax, 2
add eax, ecx
cmp eax, 0x1fffffff
mov dword [esp + 0x14], eax
ja 0x4a694a
shl eax, 2
mov dword [esp], eax
call fcn.006fec20
mov edx, eax
mov eax, dword [edi + 4]
mov ecx, dword [edi]
test eax, eax
jne 0x4a68f0
test ecx, ecx
jne 0x4a6913
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov dword [edi + 8], ecx
lea ecx, [eax + 1]
jmp 0x4a6863
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 sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp], ecx
mov dword [esp + 0x18], edx
call fcn.006febd0
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
jmp 0x4a68de
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4a6940
mov dword [esp], eax
call fcn.006febd0
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.006ff430
mov edx, dword [esp + 0x24]
mov ebx, eax
test edx, edx
je 0x4a6961
mov dword [esp], edx
call fcn.006febd0
mov dword [esp], ebx
call fcn.005e6130
nop
lea esi, [esi]