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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508a4a
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x54b2c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xbc]
test eax, eax
jle 0x4a7a7f
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a7a97
push 0x80004005
call fcn.00459fc0
mov eax, dword [edi + 0x74]
push ecx
push eax
call fcn.004e2807
add esp, 8
test eax, eax
jne 0x4a7ac2
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a7ada
push 0x80004005
call fcn.00459fc0
mov eax, dword [edi + 0x78]
push ecx
push eax
call fcn.004e2807
mov esi, dword [edi + 0x50]
xor ecx, ecx
add esp, 8
test eax, eax
setne cl
sub esi, dword [edi + 0x4c]
lea ebx, [edi + 0x40]
sar esi, 2
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x4a7b2c
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x4a7b23
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 1
call edx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, esi
jl 0x4a7b0c
cmp dword [esp + 0x10], 0
mov dword [edi + 0xb0], 0
je 0x4a7b75
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x4a7b59
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0xb4], 0
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x4a7b75
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0xb8], 0
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4a7b92
push eax
call fcn.004e00a0
add esp, 4
mov dword [edi + 0x98], 0
xor eax, eax
mov dword [edi + 0x9c], eax
mov dword [edi + 0xa0], eax
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], eax
mov dword [edi + 0xac], eax
mov eax, edi
call fcn.004a81a0
xor ebx, ebx
cmp dword [esp + 0x10], ebx
je 0x4a7bcb
lea ebx, [edi + 0x14]
call fcn.004b06b0
xor ebx, ebx
mov eax, dword [edi + 0x8c]
cmp eax, ebx
je 0x4a7be4
push eax
call fcn.004e0561
add esp, 4
mov dword [edi + 0x8c], ebx
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x4a7bf7
push eax
call fcn.004e0561
add esp, 4
mov dword [edi + 0x28], ebx
cmp dword [esp + 0x10], ebx
je 0x4a7c20
mov esi, dword [edi + 0x38]
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x4a7c20
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x4a7c1d
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 8], ebx
mov eax, dword [edi + 0x44]
mov byte [edi + 0x7c], 1
mov byte [edi + 0x2d], 1
mov byte [eax + 4], 1
mov eax, dword [edi + 0x48]
lea esi, [esp + 0x20]
mov byte [eax + 4], 1
call fcn.00459030
mov dword [esp + 0x40], ebx
lea esi, [esp + 0x24]
call fcn.00459030
mov byte [esp + 0x40], 1
lea esi, [esp + 0x30]
call fcn.00459030
mov dword [esp + 0x40], 3
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
cmp esi, ebx
jne 0x4a7c74
xor eax, eax
jmp 0x4a7c8f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a7c80
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x24]
push ecx
mov ebx, eax
call fcn.00459440
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4a7ca7
xor eax, eax
jmp 0x4a7cbf
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a7cb0
sub eax, ebx
sar eax, 1
push edx
lea edx, [esp + 0x28]
push edx
mov ebx, eax
call fcn.00459440
mov ebx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x20]
push eax
push 1
push edi
call fcn.004a7da0
mov dword [esp + 0x18], eax
mov byte [edi + 0x7c], 0
mov byte [edi + 0x2d], 0
test eax, eax
jne 0x4a7d03
mov edi, dword [edi + 0x44]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
push esi
push 1
mov ecx, edi
call eax
mov ebx, dword [esp + 0x14]
jmp 0x4a7d2d
test ebx, ebx
mov ebx, dword [esp + 0x14]
jne 0x4a7d1f
mov eax, ebx
call fcn.004a67b0
mov edx, dword [eax]
push 7
mov ecx, eax
mov eax, dword [edx + 0x28]
push 0
call eax
mov eax, dword [edi + 0x44]
mov byte [eax + 4], 0
mov edi, dword [edi + 0x48]
mov byte [edi + 4], 0
mov esi, dword [ebx + 0x10]
sub esi, dword [ebx + 0xc]
xor edi, edi
sar esi, 2
test esi, esi
jle 0x4a7d54
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x4a7d4f
mov edx, dword [ecx]
mov eax, dword [edx + 0x3c]
push 0
call eax
inc edi
cmp edi, esi
jl 0x4a7d3c
mov dword [esp + 0x40], 5
lea ecx, [esp + 0x30]
call fcn.00459050
mov byte [esp + 0x40], 4
lea ecx, [esp + 0x24]
call fcn.00459050
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00459050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc