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

Disassembly:
sub esp, 0x2bc
push ebx
push ebp
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 0xc8], esi
mov ecx, 0x7f
lea edi, [esp + 0xcc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc8]
push eax
call fcn.00472170
add esp, 4
test al, al
je 0x47374e
mov eax, dword [0x86b840]
mov dword [esp + 0x38], eax
xor eax, 0x69746572
or ebx, 0xffffffff
lea edi, [esp + 0x38]
mov dword [esp + 0x10], esi
mov word [esp + 0x3c], si
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.004ce910
mov ebp, eax
cmp ebp, esi
je 0x47371d
cmp word [ebp + 2], bx
je 0x47345e
movsx esi, word [esp + 0x10]
shl esi, 5
lea esi, [esp + esi + 0xc8]
mov ecx, 8
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x34]
mov edi, dword [esp + 0x40]
inc ecx
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0x10], ecx
jne 0x473510
mov eax, dword [0x6eb3c0]
test eax, eax
je 0x4734d1
mov eax, edi
call fcn.00460e80
test al, al
je 0x473510
mov eax, edi
call fcn.004610c0
mov eax, edi
call fcn.00476a50
cmp dword [ebp + 0x34], esi
je 0x4734c8
mov eax, edi
call fcn.004612d0
jmp 0x473510
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ebx, [ebp + 0x130]
call fcn.00478ad0
add esp, 8
test al, al
jne 0x473404
cmp byte [ebp + 0x148], 1
mov dword [esp + 0x14], 0xffffffff
jne 0x4734a1
lea esi, [ebp + 0x14c]
mov ecx, 8
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
jmp 0x473404
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 0x473408
mov dword [ebp + 0x2c], 1
jmp 0x473510
mov al, byte [0x70ae69]
test al, al
jne 0x473510
cmp word [ebp + 0xae], 0
jne 0x4734ed
mov eax, edi
call fcn.00476a50
jmp 0x473510
mov eax, dword [0x86b838]
mov cl, byte [eax + 0x10]
test cl, cl
jne 0x473510
mov al, byte [eax + 0x16]
test al, al
mov byte [0x70b490], 1
je 0x473510
mov word [0x70b4b2], 0x5b
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x473707
mov edx, dword [0x851c30]
mov edx, dword [edx + 0x34]
mov ecx, eax
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
mov ecx, dword [edx + ecx*4 + 8]
mov edx, dword [ecx + 0x204]
shr edx, 6
test dl, 1
je 0x473707
mov edx, dword [0x86b838]
cmp byte [edx + 0x11], 0
jne 0x473611
mov al, byte [esp + 0x18]
test al, al
jns 0x47357a
mov ecx, dword [ecx + 0x318]
cmp ecx, 0xffffffff
je 0x47357a
push ecx
push edi
call fcn.004784e0
mov eax, dword [ebp + 0x34]
add esp, 8
call fcn.00568cd0
mov ax, word [esp + 0x18]
mov word [esp + 0x4a], ax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x70]
mov eax, edi
call fcn.00472bc0
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x84], edx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
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 + 0x58], edx
mov dx, word [esp + 0x32]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
mov cx, word [esp + 0x30]
mov word [esp + 0x4e], dx
push eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x60], 0
mov byte [esp + 0x4c], 3
mov word [esp + 0x50], cx
mov word [esp + 0x54], bx
mov byte [esp + 0x4d], 0
lea edx, [esp + 0x4c]
jmp 0x4736ff
cmp dword [ecx + 0x1f8], 0xffffffff
jne 0x473707
cmp dword [ecx + 0x1f4], 0xffffffff
jne 0x473707
mov esi, dword [0x690504]
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.0055f3b0
add esp, 4
lea edi, [esp + 0x38]
call fcn.004ce910
mov ebp, eax
or ebx, 0xffffffff
test ebp, ebp
jne 0x4733e0
mov esi, dword [0x86b838]
lea edx, [esi + 0x58]
push 1
push edx
call fcn.00476e50
lea eax, [esi + 0x18]
push 0
push eax
call fcn.00476e50
mov ecx, dword [esi + 4]
add esp, 0x10
xor eax, eax
cmp ecx, ebx
je 0x47374a
mov eax, 1
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2bc
ret