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

Disassembly:
sub esp, 0x130
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x20], esi
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x4a7bdf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret
cmp dword [ebx], 0
jge 0x4a7e36
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [ebx + 0x80]
lea edx, [ecx + eax*4]
mov eax, dword [ebx + 0x78]
test eax, eax
mov dword [esp + 0x3c], edx
jne 0x4a7e2f
xor eax, eax
mov ax, word [ebx + 0x84]
push eax
call fcn.004a9f30
mov edi, eax
xor ecx, ecx
add esp, 4
cmp edi, ecx
mov dword [esp + 0x2c], edi
je 0x4a7e69
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], ecx
cmp eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
je 0x4a7e14
mov ecx, dword [0x84a7c8]
lea esi, [eax*4]
push 0x10006
push esi
call dword [ecx + 0x108]
mov edx, dword [0x84a7c8]
push 0x10507
push esi
mov dword [esp + 0x38], eax
call dword [edx + 0x108]
mov dword [esp + 0x34], eax
mov eax, dword [0x84a7c8]
push 0x10507
push esi
call dword [eax + 0x108]
mov ebp, eax
xor eax, eax
add esp, 0x18
cmp word [ebx + 0x84], ax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
jbe 0x4a7dd6
mov ecx, dword [ebx + 4]
xor esi, esi
xor edi, edi
lea edx, [ecx + eax*8]
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp word [esp + 0x18], si
mov ax, word [edx + 6]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
jbe 0x4a7cdd
mov ebp, dword [esp + 0x28]
mov ecx, esi
and ecx, 0xffff
cmp dword [ebp + ecx*4], eax
je 0x4a7cdd
inc esi
cmp si, word [esp + 0x18]
jb 0x4a7cc3
cmp si, word [esp + 0x18]
jne 0x4a7cfd
mov ebp, dword [esp + 0x28]
mov ecx, esi
and ecx, 0xffff
mov dword [ebp + ecx*4], eax
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4a7d03
mov edi, dword [eax]
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp word [esp + 0x10], cx
jbe 0x4a7d25
mov ebp, ecx
and ebp, 0xffff
cmp dword [eax + ebp*4], edi
je 0x4a7d25
inc ecx
cmp cx, word [esp + 0x10]
jb 0x4a7d10
cmp cx, word [esp + 0x10]
jne 0x4a7d40
mov ebp, ecx
and ebp, 0xffff
mov dword [eax + ebp*4], edi
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov edi, dword [eax + 8]
xor eax, eax
cmp word [esp + 0x14], ax
jbe 0x4a7d6e
mov ebx, eax
and ebx, 0xffff
cmp dword [ebp + ebx*4], edi
je 0x4a7d6a
inc eax
cmp ax, word [esp + 0x14]
jb 0x4a7d54
mov ebx, dword [esp + 0x1c]
cmp ax, word [esp + 0x14]
jne 0x4a7d8e
mov ebx, eax
and ebx, 0xffff
mov dword [ebp + ebx*4], edi
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x14], edi
push eax
push ecx
mov cx, word [edx + 6]
xor eax, eax
mov ax, word [edx + 4]
mov edi, dword [esp + 0x34]
push esi
push ecx
xor ecx, ecx
push eax
mov cx, word [edx + 2]
xor eax, eax
mov ax, word [edx]
push ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
push edi
call fcn.004aa0a0
mov eax, dword [esp + 0x54]
xor edx, edx
mov dx, word [ebx + 0x84]
add esp, 0x24
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x4a7c9f
mov eax, dword [esp + 0x28]
mov ecx, dword [0x84a7c8]
push eax
call dword [ecx + 0x10c]
mov edx, dword [esp + 0x28]
mov eax, dword [0x84a7c8]
push edx
call dword [eax + 0x10c]
mov ecx, dword [0x84a7c8]
push ebp
call dword [ecx + 0x10c]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x150]
add esp, 0xc
xor ecx, ecx
test byte [ebp + 8], 1
je 0x4a7e1e
push 1
jmp 0x4a7e1f
push ecx
push edi
call fcn.004ac0f0
add esp, 8
test eax, eax
je 0x4a7e60
mov dword [ebx + 0x78], eax
mov ebx, dword [esp + esi*4 + 0x40]
dec esi
jmp 0x4a7e43
mov eax, ebx
mov ebx, dword [ebx + 8]
inc esi
mov edx, dword [eax + 0xc]
mov dword [esp + esi*4 + 0x40], edx
test esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
jge 0x4a7bdf
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
push edi
call fcn.004aa020
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret