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

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0xf8], ebx
mov ecx, 0x7f
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xf8]
push eax
call fcn.00473410
add esp, 4
test al, al
je 0x474b2f
mov eax, dword [0x87a020]
mov dword [esp + 0x38], eax
xor eax, 0x69746572
lea edi, [esp + 0x38]
mov dword [esp + 0x14], ebx
mov word [esp + 0x3c], bx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], eax
call fcn.004d0610
mov ebp, eax
cmp ebp, ebx
je 0x474afe
cmp word [ebp + 2], 0xffff
je 0x474820
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 0x4748f5
mov eax, dword [0x6f1c48]
test eax, eax
je 0x4748b6
mov eax, edi
call fcn.00461110
test al, al
je 0x4748f5
mov eax, edi
call fcn.00461350
mov eax, edi
call fcn.00478010
cmp dword [ebp + 0x34], esi
je 0x4748ad
mov eax, edi
call fcn.00461560
jmp 0x4748f5
lea ebx, [ebp + 0x120]
lea eax, [esp + 0xcc]
call fcn.0047a120
cmp al, 1
jne 0x474872
mov eax, dword [esp + 0xd0]
mov ecx, 8
lea esi, [esp + 0xd8]
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xd4]
dec ecx
cmp eax, ecx
jne 0x4747c2
mov edi, dword [esp + 0xcc]
mov esi, ebp
call fcn.00476e60
jmp 0x4747c2
cmp byte [ebp + 0x138], 1
jne 0x474886
lea esi, [ebp + 0x13c]
jmp 0x4747b7
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 0x4747c6
mov dword [ebp + 0x2c], 1
jmp 0x4748f5
mov al, byte [0x718ef1]
test al, al
jne 0x4748f5
cmp word [ebp + 0xae], 0
jne 0x4748d2
mov eax, edi
call fcn.00478010
jmp 0x4748f5
mov eax, dword [0x87a018]
mov cl, byte [eax + 0x10]
test cl, cl
jne 0x4748f5
mov al, byte [eax + 0x16]
test al, al
mov byte [0x719678], 1
je 0x4748f5
mov word [0x71969a], 0x5b
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x474ae9
mov ecx, eax
and ecx, 0xffff
lea edx, [ecx + ecx*2]
mov ecx, dword [0x85ff50]
mov ecx, dword [ecx + 0x34]
mov ecx, dword [ecx + edx*4 + 8]
mov edx, dword [ecx + 0x204]
shr edx, 6
test dl, 1
je 0x474ae9
mov edx, dword [0x87a018]
cmp byte [edx + 0x11], 0
jne 0x4749f3
mov al, byte [esp + 0x18]
test al, al
jns 0x47495f
mov ecx, dword [ecx + 0x318]
cmp ecx, 0xffffffff
je 0x47495f
push ecx
push edi
call fcn.00479aa0
mov eax, dword [ebp + 0x34]
add esp, 8
call fcn.0056d730
mov ax, word [esp + 0x18]
mov word [esp + 0x4a], ax
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x70]
mov eax, edi
call fcn.00473f10
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 0x474ae1
cmp dword [ecx + 0x1f8], 0xffffffff
jne 0x474ae9
cmp dword [ecx + 0x1f4], 0xffffffff
jne 0x474ae9
mov esi, dword [0x696714]
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.00563e20
add esp, 4
lea edi, [esp + 0x38]
call fcn.004d0610
mov ebp, eax
test ebp, ebp
jne 0x4747a1
xor ebx, ebx
mov esi, dword [0x87a018]
lea edx, [esi + 0x58]
push 1
push edx
call fcn.00478410
lea eax, [esi + 0x18]
push ebx
push eax
call fcn.00478410
mov ecx, dword [esi + 4]
add esp, 0x10
xor eax, eax
cmp ecx, 0xffffffff
je 0x474b2b
mov eax, 1
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret