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

Disassembly:
sub esp, 0x3a4
push ebx
push ebp
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [esp + 0x1b0], esi
mov ecx, 0x7f
lea edi, [esp + 0x1b4]
rep stosd dword es:[edi], eax
mov byte [esp + 0xb0], 0xff
mov ecx, 0x3f
lea edi, [esp + 0xb1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x1b4]
push ecx
call fcn.00473270
add esp, 8
test al, al
je 0x474723
mov eax, dword [0x87a020]
mov dword [esp + 0x1c], eax
xor eax, 0x69746572
lea edi, [esp + 0x1c]
mov word [esp + 0x20], si
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], eax
call fcn.004d0610
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], edi
je 0x4746f1
jmp 0x4742e0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
lea esp, [esp]
movsx eax, si
mov edx, eax
shl eax, 4
lea ebx, [esp + eax + 0xb0]
mov al, byte [ebx]
shl edx, 5
inc esi
cmp al, 1
lea ebp, [esp + edx + 0x1b0]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], 0xffffffff
jne 0x47435c
cmp word [0x719648], 2
jne 0x474349
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x474349
mov edx, dword [ebx + 4]
sub esp, 0x20
mov edi, esp
push eax
mov ecx, 8
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x48]
push edx
push esi
call fcn.004e7ce0
mov edi, dword [esp + 0x40]
add esp, 0x2c
jmp 0x47434d
mov esi, dword [esp + 0x24]
cmp byte [ebx + 1], 1
jne 0x474360
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
jmp 0x474360
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x34]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x4743f0
mov eax, dword [0x6f1c48]
test eax, eax
je 0x4743b1
mov eax, esi
call fcn.00461110
test al, al
je 0x4743f0
mov eax, esi
call fcn.00461350
mov eax, esi
call fcn.00478010
cmp word [0x719648], 0
jne 0x4743f0
cmp dword [edi + 0x34], ebx
je 0x4743a8
mov eax, esi
call fcn.00461560
jmp 0x4743f0
mov dword [edi + 0x2c], 1
jmp 0x4743f0
mov al, byte [0x718ef1]
test al, al
jne 0x4743f0
cmp word [edi + 0xae], 0
jne 0x4743cd
mov eax, esi
call fcn.00478010
jmp 0x4743f0
mov eax, dword [0x87a018]
mov cl, byte [eax + 0x10]
test cl, cl
jne 0x4743f0
mov al, byte [eax + 0x16]
test al, al
mov byte [0x719678], 1
je 0x4743f0
mov word [0x71969a], 0x5b
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x4746dc
mov edx, dword [0x85ff50]
mov edx, dword [edx + 0x34]
mov ecx, eax
and ecx, 0xffff
lea ecx, [ecx + ecx*2]
mov esi, dword [edx + ecx*4 + 8]
mov ecx, dword [esi + 0x204]
shr ecx, 6
test cl, 1
mov dword [esp + 0x14], esi
je 0x4746dc
mov edx, dword [0x87a018]
mov cl, byte [edx + 0x11]
test cl, cl
jne 0x4745fa
mov ebx, dword [ebp]
test bl, 0x40
je 0x474465
cmp dword [esi + 0x11c], 0xffffffff
jne 0x474465
mov eax, dword [esp + 0x24]
push eax
call fcn.00479510
add esp, 4
test al, al
jne 0x474465
or ebx, 0x400
mov dword [ebp], ebx
mov ebx, dword [ebp]
test bh, 0x40
je 0x47448f
cmp dword [esi + 0x11c], 0xffffffff
jne 0x47448f
mov al, byte [edi + 0x3e]
test al, al
jne 0x474493
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00479240
add esp, 4
mov byte [edi + 0x3e], al
jmp 0x474493
mov byte [edi + 0x3e], 0
test bl, bl
jns 0x4744b8
mov eax, dword [esi + 0x318]
cmp eax, 0xffffffff
je 0x4744b8
mov edx, dword [esp + 0x24]
push eax
push edx
call fcn.00479aa0
mov eax, dword [edi + 0x34]
add esp, 8
call fcn.0056d730
mov esi, dword [edi + 0x34]
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
mov edx, dword [eax + edx + 8]
mov cx, word [edx + 0x2f2]
cmp cx, 0xffff
je 0x47456a
movsx ecx, cx
mov edx, dword [edx + ecx*4 + 0x2f8]
cmp edx, 0xffffffff
je 0x47456a
mov ecx, dword [0x85ff50]
mov ecx, dword [ecx + 0x34]
mov ebx, dword [0x87b7b4]
add byte [ecx + 0xffffe2], al
add byte [ebp + 0x548b5214], cl
xchg ecx, eax
or byte [ebx - 0x1d7eee], cl
inc dword [eax]
add cl, al
loop 0x474521
mov edx, dword [edx + ebx + 0x14]
mov edx, dword [edx + 0x308]
shr edx, 3
test dl, 1
je 0x47456a
mov edx, dword [ebp]
test dh, 0x18
je 0x47455b
mov eax, dword [ecx + eax + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47454d
push 1
mov ecx, esi
call fcn.0056e100
add esp, 4
mov ecx, dword [edi + 0x34]
push 1
push ecx
call fcn.0056e2f0
add esp, 8
mov edx, dword [esp + 0x14]
mov ax, word [edx + 0x2f2]
mov word [ebp + 0x18], ax
mov cx, word [ebp]
mov eax, dword [esp + 0x24]
mov word [esp + 0x32], cx
lea ecx, [ebp + 4]
lea esi, [esp + 0x58]
call fcn.00473f10
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], edx
mov dx, word [ebp + 0x18]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov ax, word [ebp + 0x1a]
mov word [esp + 0x34], dx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
mov cx, word [ebp + 0x1c]
mov word [esp + 0x36], ax
mov eax, dword [edi + 0x34]
push edx
mov dword [esp + 0x48], 0
mov byte [esp + 0x34], 3
mov word [esp + 0x3c], cx
mov byte [esp + 0x35], 0
lea edx, [esp + 0x34]
jmp 0x4746d4
cmp dword [esi + 0x1f8], 0xffffffff
jne 0x4746dc
cmp dword [esi + 0x1f4], 0xffffffff
jne 0x4746dc
or ecx, 0xffffffff
mov word [esp + 0x74], cx
mov word [esp + 0x76], cx
mov word [esp + 0x78], cx
mov ecx, dword [0x696714]
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
lea edx, [esi + 0x224]
mov ecx, dword [edx]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x90], ecx
lea ecx, [esi + 0x230]
mov dword [esp + 0x94], edx
mov edx, dword [ecx]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x9c], edx
add esi, 0x254
mov edx, dword [esi]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0xa4], edx
mov edx, dword [esi + 8]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], edx
mov byte [esp + 0x70], 3
mov byte [esp + 0x71], 0
mov word [esp + 0x72], 0
mov dword [esp + 0x88], 0
push ecx
lea edx, [esp + 0x74]
call fcn.00563e20
add esp, 4
lea edi, [esp + 0x1c]
call fcn.004d0610
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4742d4
mov esi, dword [0x87a018]
lea edx, [esi + 0x58]
push 1
push edx
call fcn.00478410
lea eax, [esi + 0x18]
push 0
push eax
call fcn.00478410
mov ecx, dword [esi + 4]
add esp, 0x10
xor eax, eax
cmp ecx, 0xffffffff
je 0x47471f
mov eax, 1
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a4
ret