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

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 0xf8], esi
mov ecx, 0x7f
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xf8]
push eax
call fcn.00476040
add esp, 4
test al, al
je 0x477791
mov eax, dword [0x8154e0]
mov dword [esp + 0x38], eax
xor eax, 0x69746572
or ebx, 0xffffffff
lea edi, [esp + 0x38]
mov dword [esp + 0x14], esi
mov word [esp + 0x3c], si
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.004d39d0
mov ebp, eax
cmp ebp, esi
je 0x477760
cmp word [ebp + 2], bx
je 0x47745e
movsx esi, word [esp + 0x14]
shl esi, 5
lea esi, [esp + esi + 0xf8]
mov ecx, 8
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x34]
mov edi, dword [esp + 0x40]
inc ecx
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0x14], ecx
jne 0x477556
mov eax, dword [0x68cc5c]
test eax, eax
je 0x477517
mov eax, edi
call fcn.00461cf0
test al, al
je 0x477556
mov eax, edi
call fcn.00461f30
mov eax, edi
call fcn.0047abf0
cmp dword [ebp + 0x34], esi
je 0x47750e
mov eax, edi
call fcn.00462140
jmp 0x477556
lea ecx, [ebp + 0x120]
push ecx
lea eax, [esp + 0xd0]
call fcn.0047cd00
add esp, 4
cmp al, 1
jne 0x4774b4
mov edx, dword [esp + 0xd4]
mov eax, dword [esp + 0xd0]
dec edx
cmp eax, edx
mov ecx, 8
lea esi, [esp + 0xd8]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jne 0x477400
mov edi, dword [esp + 0xcc]
mov esi, ebp
call fcn.00479aa0
jmp 0x477400
cmp dword [ebp + 0x34], ebx
je 0x4774d3
mov eax, dword [0x68cca8]
mov ecx, dword [eax + 0xc]
push ecx
push str.__d_:_No_action_available._n
push 1
mov eax, ebp
call fcn.004e99f0
add esp, 0xc
cmp byte [ebp + 0x138], 1
jne 0x4774e7
lea esi, [ebp + 0x13c]
jmp 0x4773f5
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
jmp 0x477404
mov dword [ebp + 0x2c], 1
jmp 0x477556
mov al, byte [0x6b3f89]
test al, al
jne 0x477556
cmp word [ebp + 0xae], 0
jne 0x477533
mov eax, edi
call fcn.0047abf0
jmp 0x477556
mov eax, dword [0x8154d8]
mov cl, byte [eax + 0x10]
test cl, cl
jne 0x477556
mov al, byte [eax + 0x16]
test al, al
mov byte [0x6b4718], 1
je 0x477556
mov word [0x6b473a], 0x5b
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x47774a
mov ecx, eax
and ecx, 0xffff
lea edx, [ecx + ecx*2]
mov ecx, dword [0x7fb2d0]
mov ecx, dword [ecx + 0x34]
mov ecx, dword [ecx + edx*4 + 8]
mov edx, dword [ecx + 0x204]
shr edx, 6
test dl, 1
je 0x47774a
mov edx, dword [0x8154d8]
cmp byte [edx + 0x11], 0
jne 0x477654
mov al, byte [esp + 0x18]
test al, al
jns 0x4775c0
mov ecx, dword [ecx + 0x318]
cmp ecx, 0xffffffff
je 0x4775c0
push ecx
push edi
call fcn.0047c680
mov eax, dword [ebp + 0x34]
add esp, 8
call fcn.00570ec0
mov ax, word [esp + 0x18]
mov word [esp + 0x4a], ax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x70]
mov eax, edi
call fcn.00476b40
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x84], edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
mov dx, word [esp + 0x32]
mov dword [esp + 0x54], ecx
mov cx, word [esp + 0x30]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x34]
mov word [esp + 0x4e], dx
mov dword [esp + 0x5c], 0
mov byte [esp + 0x48], 3
mov word [esp + 0x4c], cx
mov word [esp + 0x50], bx
mov byte [esp + 0x49], 0
push 0xffffffffffffffff
lea edx, [esp + 0x4c]
jmp 0x477742
cmp dword [ecx + 0x1f8], 0xffffffff
jne 0x47774a
cmp dword [ecx + 0x1f4], 0xffffffff
jne 0x47774a
mov esi, dword [0x631d04]
mov edi, dword [esi]
mov dword [esp + 0x94], edi
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [esp + 0x9c], esi
lea esi, [ecx + 0x224]
mov dword [esp + 0x98], edi
mov edi, dword [esi]
mov dword [esp + 0xa4], edi
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [esp + 0xac], esi
lea esi, [ecx + 0x230]
mov dword [esp + 0xa8], edi
mov edi, dword [esi]
or edx, 0xffffffff
mov dword [esp + 0xb0], edi
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
add ecx, 0x254
mov dword [esp + 0xb8], esi
mov esi, dword [ecx]
mov dword [esp + 0xbc], esi
mov esi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov word [esp + 0x8c], dx
mov word [esp + 0x8e], dx
mov word [esp + 0x90], dx
push edx
mov byte [esp + 0x8c], 3
mov byte [esp + 0x8d], 0
mov word [esp + 0x8e], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb8], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ecx
lea edx, [esp + 0x8c]
call fcn.00567370
add esp, 4
lea edi, [esp + 0x38]
call fcn.004d39d0
mov ebp, eax
or ebx, 0xffffffff
test ebp, ebp
jne 0x4773e0
mov esi, dword [0x8154d8]
lea edx, [esi + 0x58]
push 1
push edx
call fcn.0047aff0
lea eax, [esi + 0x18]
push 0
push eax
call fcn.0047aff0
mov ecx, dword [esi + 4]
add esp, 0x10
xor eax, eax
cmp ecx, ebx
je 0x47778d
mov eax, 1
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret