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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
xor edi, edi
mov ebp, dword [esi]
push esi
xor ebx, ebx
mov dword [esp + 0x14], edi
call fcn.0047caf0
mov ecx, dword [esp + 0x5c]
add esp, 4
cmp ecx, edi
mov dword [esp + 0x14], eax
jge 0x4772e4
mov edx, dword [esp + 0x4c]
xor ecx, ecx
push edi
mov cl, byte [edx + 0x18]
push ecx
push 0x76
push eax
call fcn.0046c410
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x4773c9
push 0
push 0x84
push ebp
call fcn.0046b0b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47736e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x477363
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
mov edx, dword [esp + 0x44]
movsx edx, word [edx + 0x24]
cmp edx, eax
jne 0x477333
or eax, 0xffffffff
mov edx, dword [esp + 0x54]
lea eax, [eax + edx + 1]
mov dword [esi + 0x18], eax
mov dl, byte [ecx + 0x15]
mov byte [esi + 1], dl
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x477350
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.00471090
add esp, 0xc
mov esi, eax
jmp 0x47736e
mov edx, dword [esp + 0x54]
mov byte [esi + 1], 0x64
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x50]
test eax, eax
je 0x47737b
mov eax, dword [eax + edi*4]
jmp 0x477382
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x24]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov edx, dword [ecx]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + eax*8]
push eax
push 0x1a
push ebp
call fcn.0046b0b0
mov edx, dword [esp + 0x48]
push 0
push eax
push esi
push 0x4c
push edx
call fcn.0046b0f0
push eax
push ebx
push ebp
call fcn.0046b1d0
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x2c
inc edi
cmp edi, dword [eax + 0x14]
jl 0x4772f3
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp ecx, dword [edx]
jne 0x477438
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x477438
push 0
push 0x84
push ebp
call fcn.0046b0b0
push 0
push 0x98
push ebp
mov edi, eax
call fcn.0046b0b0
add esp, 0x18
test edi, edi
je 0x47741f
test eax, eax
je 0x47741f
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [edi + 0x18], ecx
mov byte [edi + 1], 0x64
mov ecx, dword [edx + 0x34]
mov word [eax + 0x1c], 0xffff
mov dword [eax + 0x18], ecx
push 0
push eax
push edi
push 0x4b
push esi
call fcn.0046b0f0
push eax
push ebx
push ebp
call fcn.0046b1d0
add esp, 0x20
mov ebx, eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x40]
push ebx
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
call fcn.0046fad0
push 0
push 0
push 0
push 0
push ebx
push edi
push esi
call fcn.00484330
mov ecx, dword [esp + 0x7c]
add esp, 0x24
test ecx, ecx
mov edi, eax
jle 0x477494
mov eax, dword [esp + 0x4c]
mov dl, byte [eax + 0x18]
test dl, dl
jne 0x477494
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x477490
mov esi, eax
mov byte [esi + 0x18], 1
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
push ecx
xor ecx, ecx
mov cl, byte [edx + 0x18]
push ecx
push 0x75
push esi
call fcn.0046c410
add esp, 0x10
test edi, edi
je 0x4774bb
push edi
call fcn.00489b20
add esp, 4
push ebx
push ebp
call fcn.00462ed0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4774d7
push eax
push esi
call fcn.0046c430
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret