Function at 0x476e70
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.00475ea0
add esp, 8
test al, al
je 0x47735d
mov eax, dword [0x8154e0]
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.004d39d0
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], edi
je 0x47732b
jmp 0x476f10
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 0x476f8c
cmp word [0x6b46e8], 2
jne 0x476f79
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea ecx, [eax - 1]
cmp edx, ecx
jne 0x476f79
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.004eb600
mov edi, dword [esp + 0x40]
add esp, 0x2c
jmp 0x476f7d
mov esi, dword [esp + 0x24]
cmp byte [ebx + 1], 1
jne 0x476f9a
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
jmp 0x476f9a
mov ecx, dword [edi + 0xf4]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x34]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x47702a
mov eax, dword [0x68cc5c]
test eax, eax
je 0x476feb
mov eax, esi
call fcn.00461cf0
test al, al
je 0x47702a
mov eax, esi
call fcn.00461f30
mov eax, esi
call fcn.0047abf0
cmp word [0x6b46e8], 0
jne 0x47702a
cmp dword [edi + 0x34], ebx
je 0x476fe2
mov eax, esi
call fcn.00462140
jmp 0x47702a
mov dword [edi + 0x2c], 1
jmp 0x47702a
mov al, byte [0x6b3f89]
test al, al
jne 0x47702a
cmp word [edi + 0xae], 0
jne 0x477007
mov eax, esi
call fcn.0047abf0
jmp 0x47702a
mov eax, dword [0x8154d8]
mov cl, byte [eax + 0x10]
test cl, cl
jne 0x47702a
mov al, byte [eax + 0x16]
test al, al
mov byte [0x6b4718], 1
je 0x47702a
mov word [0x6b473a], 0x5b
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x477316
mov ecx, eax
and ecx, 0xffff
lea edx, [ecx + ecx*2]
mov ecx, dword [0x7fb2d0]
mov ecx, dword [ecx + 0x34]
mov esi, dword [ecx + edx*4 + 8]
mov edx, dword [esi + 0x204]
shr edx, 6
test dl, 1
mov dword [esp + 0x14], esi
je 0x477316
mov ecx, dword [0x8154d8]
mov dl, byte [ecx + 0x11]
test dl, dl
jne 0x477234
mov ebx, dword [ebp]
test bl, 0x40
je 0x47709f
cmp dword [esi + 0x11c], 0xffffffff
jne 0x47709f
mov edx, dword [esp + 0x24]
push edx
call fcn.0047c0f0
add esp, 4
test al, al
jne 0x47709f
or ebx, 0x400
mov dword [ebp], ebx
mov ebx, dword [ebp]
test bh, 0x40
je 0x4770c9
cmp dword [esi + 0x11c], 0xffffffff
jne 0x4770c9
mov al, byte [edi + 0x3e]
test al, al
jne 0x4770cd
mov eax, dword [esp + 0x24]
push eax
call fcn.0047be20
add esp, 4
mov byte [edi + 0x3e], al
jmp 0x4770cd
mov byte [edi + 0x3e], 0
test bl, bl
jns 0x4770f2
mov eax, dword [esi + 0x318]
cmp eax, 0xffffffff
je 0x4770f2
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0047c680
mov eax, dword [edi + 0x34]
add esp, 8
call fcn.00570ec0
mov esi, dword [edi + 0x34]
mov edx, dword [0x7fb2d0]
mov ecx, dword [edx + 0x34]
mov eax, esi
and eax, 0xffff
lea eax, [eax + eax*2]
shl eax, 2
mov edx, dword [eax + ecx + 8]
mov cx, word [edx + 0x2f2]
cmp cx, 0xffff
je 0x4771a4
movsx ecx, cx
mov edx, dword [edx + ecx*4 + 0x2f8]
cmp edx, 0xffffffff
je 0x4771a4
mov ecx, dword [0x7fb2d0]
mov ecx, dword [ecx + 0x34]
mov ebx, dword [0x816d04]
and edx, 0xffff
lea edx, [edx + edx*2]
mov edx, dword [ecx + edx*4 + 8]
mov edx, dword [edx]
and edx, 0xffff
shl edx, 5
mov edx, dword [edx + ebx + 0x14]
mov edx, dword [edx + 0x308]
shr edx, 3
test dl, 1
je 0x4771a4
mov edx, dword [ebp]
test dh, 0x18
je 0x477195
mov eax, dword [ecx + eax + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x477187
push 1
mov ecx, esi
call fcn.00571890
add esp, 4
mov ecx, dword [edi + 0x34]
push 1
push ecx
call fcn.00571a80
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.00476b40
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 0x47730e
cmp dword [esi + 0x1f8], 0xffffffff
jne 0x477316
cmp dword [esi + 0x1f4], 0xffffffff
jne 0x477316
or ecx, 0xffffffff
mov word [esp + 0x74], cx
mov word [esp + 0x76], cx
mov word [esp + 0x78], cx
mov ecx, dword [0x631d04]
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.00567370
add esp, 4
lea edi, [esp + 0x1c]
call fcn.004d39d0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x476f04
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, 0xffffffff
je 0x477359
mov eax, 1
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a4
ret