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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x240
mov esi, esp
mov dword [esi + 0x228], ebp
lea eax, [esi + 0x230]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x478000
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea ecx, [esi + 0x98]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], fcn.00413500
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x228]
mov dword [esi + 0x54], ecx
xor edx, edx
lea ecx, [esi + 0x78]
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
lea edi, [esi + 0x18]
mov dword [edi + 4], edx
mov dword [edi], edx
mov dword [edi + 8], edx
mov dword [eax + 8], 1
lea ecx, [esi + 0x38]
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
lea eax, [esi + 0x28]
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 8], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], edx
mov dword [esi + 0x60], edx
mov bl, byte [ebp + 0x10]
movzx ebx, bl
lea edx, [esi + 0x6c]
push edx
push eax
push ecx
push edi
lea eax, [esi + 0x78]
push eax
lea eax, [esi + 0x74]
push eax
lea eax, [esi + 0x76]
push eax
lea eax, [esi + 0x70]
push eax
push dword [ebp + 0x14]
push ebx
call fcn.0047145e
add esp, 0x28
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ecx], eax
shr edx, 9
and edx, 1
mov dword [esi + 0x90], edx
mov ecx, dword [ebp + 0xc]
xor edi, edi
xor eax, eax
mov dword [esi + 8], eax
cmp edi, 3
ja 0x470fdb
mov dword [esi + 0xc], edi
mov dword [esi], ecx
mov dword [esi + 0x238], 1
mov ecx, dword [ebp + 8]
call fcn.00477644
mov edx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x470747
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470728
movzx eax, word [eax]
jmp 0x470735
mov eax, dword [ecx]
mov byte [esi + 4], dl
call dword [eax + 0x20]
mov dl, byte [esi + 4]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x470747
test dl, dl
mov edi, dword [esi + 0xc]
jne 0x470754
jmp 0x470fdb
xor ecx, ecx
test dl, dl
mov edi, dword [esi + 0xc]
jne 0x470fdb
movsx eax, byte [esi + edi + 0x70]
cmp eax, 4
ja case.default.0x470764
mov dword [esi], ecx
jmp dword [eax*4 + 0x471214]
cmp edi, 3
jne 0x470aa8
jmp 0x4707ef
cmp edi, 3
jne 0x47098a
mov eax, dword [esi + 8]
jmp 0x470fac
cmp edi, 2
jb 0x4709a3
cmp dword [esi + 8], 0
jne 0x4709a3
cmp edi, 2
sete al
cmp byte [esi + 0x73], 0
setne cl
and cl, al
or cl, byte [esi + 0x90]
cmp cl, 1
jne 0x470a35
mov cl, byte [esi + 0x23]
test cl, cl
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, eax
jmp 0x4709b9
movzx edx, byte [esi + 0x43]
mov eax, edx
test dl, dl
jns 0x4707d8
mov eax, dword [esi + 0x3c]
movzx ebx, byte [esi + 0x33]
mov edi, ebx
test bl, bl
jns 0x4707e5
mov edi, dword [esi + 0x2c]
mov ecx, eax
add ecx, edi
jne 0x470a0a
mov eax, dword [esi + 8]
mov ecx, dword [esi]
jmp 0x470b44
mov dword [esi + 4], 0
mov ecx, dword [ebp + 8]
call fcn.00477644
mov edx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x470839
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47081d
movzx eax, word [eax]
jmp 0x47082a
mov eax, dword [ecx]
mov byte [esi + 0x10], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0x10]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x470839
test dl, dl
jne 0x470843
jmp 0x47091d
xor ecx, ecx
test dl, dl
jne 0x47091d
mov dword [esi], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470857
movzx edx, word [eax]
jmp 0x47085e
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx]
mov word [esi + 0x10], dx
movzx edx, dx
push edx
push 4
call dword [eax + 0xc]
test al, al
je 0x4708a6
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x470893
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
call fcn.0047160e
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [eax + 2]
mov dword [edx], ecx
movzx ecx, word [esi + 0x10]
mov word [eax], cx
inc dword [esi + 4]
jmp 0x4708fb
movzx eax, byte [esi + 0x83]
test al, al
jns 0x4708b4
mov eax, dword [esi + 0x7c]
movzx ecx, word [esi + 0x10]
cmp cx, word [esi + 0x74]
mov ecx, dword [esi]
jne 0x47091d
cmp dword [esi + 4], 0
je 0x47091d
test eax, eax
je 0x47091d
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x54]
jne 0x4708e9
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.004701ec
add esp, 0xc
mov eax, dword [esi + 0x14]
lea ecx, [eax + 4]
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [esi + 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470913
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470800
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x470800
cmp dword [esi + 4], 0
je 0x470956
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x48], eax
je 0x470956
cmp eax, dword [esi + 0x54]
jne 0x47094b
mov dword [esi], ecx
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.004701ec
add esp, 0xc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
lea edx, [eax + 4]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
mov dword [eax], edx
cmp dword [esi + 0x6c], 0
jle 0x470c9d
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
call fcn.00477644
mov ebx, eax
mov edx, dword [esi]
test edx, edx
je 0x470a3c
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x470b4c
movzx eax, word [eax]
jmp 0x470b5b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470a4b
movzx eax, word [eax]
jmp 0x470a50
mov cl, byte [esi + 0x23]
test cl, cl
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
cmovs ebx, eax
test edi, edi
je 0x470d55
lea edx, [esi + 0x70]
cmp byte [edi + edx - 1], 1
ja 0x470d55
test cl, cl
jns 0x4709d2
mov edx, dword [esi + 0x1c]
mov edi, eax
jmp 0x4709d8
movzx edx, cl
lea edi, [esi + 0x18]
lea edx, [edi + edx*2]
cmp edx, ebx
mov dword [esi + 4], ebx
je 0x470cbe
movzx eax, word [ebx]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
mov ebx, dword [esi + 4]
test al, al
je 0x470cb8
add ebx, 2
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
jmp 0x4709c7
test eax, eax
je 0x470a7e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + 0x10]
test edi, edi
je 0x470e42
cmp eax, ebx
je 0x470e52
movzx eax, word [eax]
mov word [esi + 0x10], ax
jmp 0x470e5e
xor eax, eax
jmp 0x470fac
xor edx, edx
test bl, bl
je 0x470b72
jmp 0x4710e2
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x4710e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470a97
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x470a9c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470ea4
movzx eax, word [eax]
jmp 0x470eac
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x58]
push eax
call fcn.004795f8
mov ecx, dword [ebp + 8]
call fcn.00477644
mov edx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x470ade
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470ac5
movzx eax, word [eax]
jmp 0x470ad2
mov eax, dword [ecx]
mov byte [esi + 4], dl
call dword [eax + 0x20]
mov dl, byte [esi + 4]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x470ade
test dl, dl
jne 0x470ae4
jmp 0x470b41
xor ecx, ecx
test dl, dl
jne 0x470b41
mov dword [esi], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470af8
movzx eax, word [eax]
jmp 0x470afd
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x4707ef
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470b2b
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x470b30
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x58]
push eax
call fcn.004795f8
jmp 0x470aa8
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
jmp 0x470fd5
mov eax, dword [edx]
mov ecx, edx
mov byte [esi + 4], bl
call dword [eax + 0x20]
mov bl, byte [esi + 4]
mov edx, dword [esi]
cmp ax, 0xffff
sete al
mov ecx, 0
cmove edx, ecx
cmp bl, al
je 0x4710e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
mov dword [esi], edx
je 0x470b86
movzx eax, word [eax]
jmp 0x470b8b
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp ax, word [esi + 0x76]
jne 0x4710e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470c91
add eax, 2
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x6c], 0
jle 0x470c9b
mov ecx, dword [ebp + 8]
call fcn.00477644
mov ebx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x470bd3
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470be2
movzx eax, word [eax]
jmp 0x470bef
mov dword [esi], 0
test bl, bl
je 0x470c06
jmp 0x4710e2
mov eax, dword [ecx]
mov byte [esi + 4], bl
call dword [eax + 0x20]
mov bl, byte [esi + 4]
mov ecx, dword [esi]
xor edx, edx
cmp ax, 0xffff
sete al
je 0x470bfc
mov edx, ecx
mov dword [esi], edx
cmp bl, al
je 0x4710e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470c18
movzx eax, word [eax]
jmp 0x470c1d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
movzx eax, ax
push eax
push 4
call dword [edx + 0xc]
test al, al
je 0x4710e2
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x470c4f
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.0047160e
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470c61
movzx eax, word [eax]
jmp 0x470c66
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [ebp + 0x2c]
mov ecx, dword [edi]
lea edx, [ecx + 2]
mov dword [edi], edx
mov word [ecx], ax
dec dword [esi + 0x6c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x470ba6
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x470bac
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x470bac
mov ecx, dword [esi]
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
mov edx, dword [ebp + 0x28]
cmp eax, dword [edx]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
jne 0x470fd5
jmp 0x4710e2
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
test cl, cl
lea edx, [esi + 0x18]
cmovs edx, eax
mov dword [esi + 0x68], edx
sub ebx, edx
sar ebx, 1
mov ch, byte [esi + 0x63]
test ch, ch
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x10], edx
movzx edx, ch
mov edi, edx
mov dword [esi + 0x8c], edx
cmovs edx, dword [esi + 0x10]
cmp ebx, edx
jbe 0x470cf0
mov ebx, dword [esi + 0x68]
jmp 0x470d55
test ch, ch
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
mov dword [esi + 0x50], edx
mov edi, dword [esi + 0x10]
mov edx, dword [esi + 0x50]
lea edx, [edx + edi*2]
mov dword [esi + 0x10], edx
mov edi, dword [esi + 0x8c]
lea edx, [esi + edi*2 + 0x58]
cmovs edx, dword [esi + 0x10]
mov dword [esi + 0x10], edx
lea edi, [esi + 0x58]
mov edx, dword [esi + 0x50]
cmovns edx, edi
mov dword [esi + 0x50], edx
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x88]
lea edx, [edx + edi*2]
add ebx, ebx
sub edx, ebx
cmp edx, dword [esi + 0x10]
je 0x470d52
mov ebx, dword [esi + 0x68]
movzx edi, word [edx]
cmp di, word [ebx]
jne 0x470ceb
add edx, 2
add ebx, 2
cmp edx, dword [esi + 0x10]
jne 0x470d3f
mov ebx, dword [esi + 4]
test cl, cl
jns 0x470d5e
mov ecx, dword [esi + 0x1c]
jmp 0x470d64
movzx ecx, cl
lea eax, [esi + 0x18]
lea eax, [eax + ecx*2]
cmp ebx, eax
je 0x470e0a
mov dword [esi + 0x238], 1
mov ecx, dword [ebp + 8]
mov dword [esi + 4], ebx
call fcn.00477644
mov ebx, dword [esi + 4]
mov edx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x470db8
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470d9c
movzx eax, word [eax]
jmp 0x470dac
mov eax, dword [ecx]
mov byte [esi + 0x10], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0x10]
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x470db8
test dl, dl
jne 0x470dbe
jmp 0x470e0c
xor ecx, ecx
test dl, dl
jne 0x470e0c
mov dword [esi], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470dd2
movzx eax, word [eax]
jmp 0x470dda
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi + 4]
cmp ax, word [ebx]
jne 0x470e0a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470df4
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470dfc
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi + 4]
add ebx, 2
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
jmp 0x470d55
mov ecx, dword [esi]
bt dword [ebp + 0x18], 9
mov edi, dword [esi + 0xc]
jb 0x470e1e
mov eax, dword [esi + 8]
jmp 0x470fd5
movzx eax, byte [esi + 0x23]
lea edx, [esi + 0x18]
test al, al
jns 0x470e2f
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea eax, [edx + eax*2]
cmp ebx, eax
mov eax, dword [esi + 8]
je 0x470fd5
jmp 0x4710e2
cmp eax, ebx
je 0x470ede
movzx eax, word [eax]
jmp 0x470ee6
mov eax, dword [ecx]
call dword [eax + 0x20]
mov word [esi + 0x10], ax
mov dl, byte [esi + 0x43]
lea ebx, [esi + 0x38]
test dl, dl
jns 0x470e68
mov ebx, dword [esi + 0x38]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
mov dword [esi + 4], eax
movzx eax, word [esi + 0x10]
cmp ax, word [ebx]
jne 0x470e93
cmp edi, dword [esi + 4]
je 0x470f1f
add edi, 2
mov dword [ecx + 0xc], edi
jmp 0x470fb8
cmp edi, dword [esi + 4]
je 0x470f29
movzx eax, word [edi]
jmp 0x470f2e
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test bl, bl
jns 0x470eb6
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
mov edi, dword [esi + 0xc]
jne 0x47077f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470f83
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470f8b
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x43]
lea ecx, [esi + 0x38]
test dl, dl
jns 0x470ef0
mov ecx, dword [esi + 0x38]
cmp ax, word [ecx]
mov edi, dword [esi + 0xc]
jne 0x470f14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470fb0
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470fb8
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
jmp 0x47077f
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x470fb5
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x470f3b
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
jne 0x4710e2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470f59
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470f61
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test dl, dl
jns 0x470f70
mov eax, dword [esi + 0x2c]
jmp 0x470f73
movzx eax, dl
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
cmp eax, 1
mov eax, dword [esi + 8]
lea edx, [esi + 0x28]
jmp 0x470fd2
mov eax, dword [ecx]
call dword [eax + 0x24]
mov bl, byte [esi + 0x33]
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
test bl, bl
jns 0x470f9a
mov eax, dword [esi + 0x2c]
jmp 0x470f9d
movzx eax, bl
mov edi, dword [esi + 0xc]
cmp eax, 1
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
cmova eax, ecx
mov ecx, dword [esi]
jmp 0x470fd5
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x43]
test dl, dl
jns 0x470fc1
mov eax, dword [esi + 0x3c]
jmp 0x470fc4
movzx eax, dl
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
cmp eax, 1
mov eax, dword [esi + 8]
lea edx, [esi + 0x38]
cmova eax, edx
inc edi
jmp 0x4706f0
mov dword [esi], ecx
cmp dword [esi + 8], 0
je 0x4710b6
xor edi, edi
inc edi
mov ecx, dword [esi + 8]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x470ff8
mov eax, dword [ecx + 4]
cmp edi, eax
jae 0x4710b6
mov dword [esi + 0x238], 1
mov ecx, dword [ebp + 8]
mov dword [esi + 4], edi
call fcn.00477644
mov edi, dword [esi + 4]
mov ebx, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x47102d
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x471038
movzx eax, word [eax]
jmp 0x471048
xor edx, edx
test bl, bl
je 0x47105d
jmp 0x4710e2
mov eax, dword [ecx]
mov byte [esi + 0x10], bl
call dword [eax + 0x20]
mov bl, byte [esi + 0x10]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
xor edx, edx
cmp ax, 0xffff
sete al
je 0x471055
mov edx, ecx
cmp bl, al
je 0x4710e2
mov dword [esi], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x471071
movzx eax, word [eax]
jmp 0x471079
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xb], 0
jns 0x471087
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
cmp ax, word [ecx + edi*2]
jne 0x4710e2
inc edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4710a6
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470fea
mov eax, dword [ecx]
mov dword [esi + 4], edi
call dword [eax + 0x24]
mov edi, dword [esi + 4]
jmp 0x470fea
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x14]
mov bl, 1
cmp eax, ecx
je 0x4710ea
lea edi, [esi + 0x94]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x78]
push eax
call fcn.00470266
add esp, 0x10
cmp dword [edi], 0
je 0x4710ea
mov eax, dword [ebp + 0x1c]
or byte [eax], 4
xor ebx, ebx
cmp byte [esi + 0x63], 0
jns 0x4710fb
push dword [esi + 0x58]
call fcn.00596316
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x47110c
push dword [esi + 0x28]
call fcn.00596316
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x47111d
push dword [esi + 0x38]
call fcn.00596316
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x47112e
push dword [esi + 0x18]
call fcn.00596316
add esp, 4
cmp byte [esi + 0x83], 0
jns 0x471142
push dword [esi + 0x78]
call fcn.00596316
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x48], 0
test eax, eax
je 0x471165
mov dword [esi + 0x238], 0
push eax
mov dword [esi], ebx
call dword [esi + 0x4c]
mov ebx, dword [esi]
add esp, 4
mov eax, dword [esi + 0x230]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret