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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov esi, esp
mov dword [esi + 0x220], ebp
lea eax, [esi + 0x228]
mov bl, byte [ebp + 0x10]
xor edx, edx
lea edi, [esi + 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x477850
mov ecx, dword fs:[0]
movzx ebx, bl
mov dword [eax], ecx
lea ecx, [esi + 0x90]
mov dword fs:[0], eax
mov dword [eax + 8], 1
lea eax, [esi + 0x28]
mov dword [edi + 4], edx
mov dword [edi], edx
mov dword [edi + 8], edx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x14], ecx
lea ecx, [esi + 0x220]
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 8], edx
mov dword [esi + 0x4c], fcn.00413500
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x78]
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
lea ecx, [esi + 0x38]
mov dword [ecx + 4], edx
mov dword [ecx], edx
mov dword [ecx + 8], edx
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.00470c8e
add esp, 0x28
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
xor edi, edi
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp edi, 3
mov dword [esi + 8], eax
ja 0x470808
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x10], edi
mov dword [esi + 0x230], 1
call fcn.00476ee4
mov ecx, dword [esi]
mov edx, eax
test ecx, ecx
je 0x46ff68
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x46ff49
movzx eax, word [eax]
jmp 0x46ff56
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 0x46ff68
mov edi, dword [esi + 0x10]
test dl, dl
jne 0x46ff75
jmp 0x470808
mov edi, dword [esi + 0x10]
xor ecx, ecx
test dl, dl
jne 0x470808
movsx eax, byte [esi + edi + 0x70]
cmp eax, 4
ja case.default.0x46ff85
mov dword [esi], ecx
jmp dword [eax*4 + 0x470a44]
cmp edi, 3
jne 0x4702d2
jmp 0x47000a
cmp edi, 3
jne 0x4701a5
mov eax, dword [esi + 8]
mov ecx, dword [esi]
jmp 0x470669
cmp edi, 2
jb 0x4701be
cmp dword [esi + 8], 0
jne 0x4701be
cmp edi, 2
sete al
cmp byte [esi + 0x73], 0
setne cl
bt dword [ebp + 0x18], 9
jb 0x470207
and al, cl
jne 0x470207
mov ecx, dword [esi]
xor eax, eax
jmp 0x470669
movzx edx, byte [esi + 0x43]
test dl, dl
mov eax, edx
jns 0x46fff3
mov eax, dword [esi + 0x3c]
movzx ebx, byte [esi + 0x33]
test bl, bl
mov ecx, ebx
jns 0x470000
mov ecx, dword [esi + 0x2c]
mov edi, eax
add edi, ecx
jne 0x4701d5
mov eax, dword [esi + 8]
mov ecx, dword [esi]
jmp 0x47036e
mov dword [esi + 4], 0
mov ecx, dword [ebp + 8]
call fcn.00476ee4
mov ecx, dword [esi]
mov edx, eax
test ecx, ecx
je 0x470054
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470038
movzx eax, word [eax]
jmp 0x470045
mov eax, dword [ecx]
mov byte [esi + 0xc], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0xc]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x470054
test dl, dl
jne 0x47005e
jmp 0x470138
xor ecx, ecx
test dl, dl
jne 0x470138
mov eax, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470072
movzx edx, word [eax]
jmp 0x470079
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edx, eax
mov ecx, dword [ebp + 0x24]
mov word [esi + 0xc], dx
movzx edx, dx
mov eax, dword [ecx]
push edx
push 4
call dword [eax + 0xc]
test al, al
je 0x4700c1
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
cmp eax, dword [ebp + 0x30]
jne 0x4700ae
lea eax, [ebp + 0x30]
push eax
push ecx
push dword [ebp + 0x28]
call fcn.00470e3e
add esp, 0xc
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
mov edx, ecx
lea edi, [eax + 2]
inc dword [esi + 4]
mov dword [edx], edi
movzx edx, word [esi + 0xc]
mov word [eax], dx
jmp 0x470116
movzx eax, byte [esi + 0x83]
test al, al
jns 0x4700cf
mov eax, dword [esi + 0x7c]
movzx ecx, word [esi + 0xc]
cmp cx, word [esi + 0x74]
mov ecx, dword [esi]
jne 0x470138
cmp dword [esi + 4], 0
je 0x470138
test eax, eax
je 0x470138
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x54]
jne 0x470104
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.0046fa0c
add esp, 0xc
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 4]
lea ecx, [eax + 4]
mov dword [esi + 4], 0
mov dword [esi + 0x14], ecx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47012e
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x47001b
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x47001b
cmp dword [esi + 4], 0
je 0x470171
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x48], eax
je 0x470171
cmp eax, dword [esi + 0x54]
jne 0x470166
lea eax, [esi + 0x54]
mov dword [esi], ecx
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.0046fa0c
add esp, 0xc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi]
mov edi, dword [esi + 4]
lea edx, [eax + 4]
mov dword [esi + 0x14], edx
mov dword [eax], edi
cmp dword [esi + 0x6c], 0
jle 0x4704cd
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
call fcn.00476ee4
mov edx, dword [esi]
mov ebx, eax
test edx, edx
je 0x470266
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x470376
movzx eax, word [eax]
jmp 0x470385
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470275
movzx eax, word [eax]
jmp 0x47027a
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
test cl, cl
cmovs ebx, eax
test edi, edi
jne 0x470215
jmp 0x470585
test eax, eax
je 0x4702a8
mov eax, dword [ebp + 8]
test ecx, ecx
mov ecx, dword [eax]
mov edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x10]
je 0x47066f
cmp edi, eax
je 0x47067f
movzx ebx, word [edi]
mov dword [esi + 0xc], eax
mov word [esi + 4], bx
jmp 0x470699
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x18]
test cl, cl
cmovs ebx, eax
lea edx, [esi + 0x70]
cmp byte [edi + edx - 1], 1
ja 0x470585
test cl, cl
jns 0x47022e
mov edx, dword [esi + 0x1c]
mov edi, eax
jmp 0x470234
movzx edx, cl
lea edi, [esi + 0x18]
lea edx, [edi + edx*2]
mov dword [esi + 4], ebx
cmp edx, ebx
je 0x4704ee
mov ecx, dword [ebp + 0x24]
movzx eax, word [ebx]
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
mov ebx, dword [esi + 4]
test al, al
je 0x4704e8
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
add ebx, 2
jmp 0x470223
xor edx, edx
test bl, bl
je 0x47039f
jmp 0x470912
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
movzx eax, ax
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x470912
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4702c1
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x4702c6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4706d1
movzx eax, word [eax]
jmp 0x4706d9
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x58]
push eax
call fcn.00478e2c
mov ecx, dword [ebp + 8]
call fcn.00476ee4
mov ecx, dword [esi]
mov edx, eax
test ecx, ecx
je 0x470308
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4702ef
movzx eax, word [eax]
jmp 0x4702fc
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 0x470308
test dl, dl
jne 0x47030e
jmp 0x47036b
xor ecx, ecx
test dl, dl
jne 0x47036b
mov eax, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470322
movzx eax, word [eax]
jmp 0x470327
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
movzx eax, ax
mov edx, dword [ecx]
push eax
push 8
call dword [edx + 0xc]
test al, al
je 0x47000a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470355
lea edx, [eax + 2]
mov dword [ecx + 0xc], edx
movzx eax, word [eax]
jmp 0x47035a
mov eax, dword [ecx]
call dword [eax + 0x24]
movzx eax, ax
lea ecx, [esi + 0x58]
push eax
call fcn.00478e2c
jmp 0x4702d2
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x10]
jmp 0x470669
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
mov ecx, 0
sete al
cmove edx, ecx
xor bl, al
cmp bl, 1
jne 0x470912
mov eax, dword [ebp + 8]
mov dword [esi], edx
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4703b3
movzx eax, word [eax]
jmp 0x4703b8
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp ax, word [esi + 0x76]
jne 0x470912
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4704c1
add eax, 2
mov dword [ecx + 0xc], eax
cmp dword [esi + 0x6c], 0
jle 0x4704cb
mov ecx, dword [ebp + 8]
call fcn.00476ee4
mov ecx, dword [esi]
mov ebx, eax
test ecx, ecx
je 0x470400
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x47040f
movzx eax, word [eax]
jmp 0x47041c
test bl, bl
mov dword [esi], 0
je 0x470436
jmp 0x470912
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 0x470429
mov edx, ecx
xor bl, al
mov dword [esi], edx
cmp bl, 1
jne 0x470912
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470448
movzx eax, word [eax]
jmp 0x47044d
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x24]
movzx eax, ax
mov edx, dword [ecx]
push eax
push 4
call dword [edx + 0xc]
test al, al
je 0x470912
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x30]
jne 0x47047f
lea eax, [ebp + 0x30]
push eax
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
call fcn.00470e3e
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470491
movzx eax, word [eax]
jmp 0x470496
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
mov eax, dword [ebp + 8]
dec dword [esi + 0x6c]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
jne 0x4703d3
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4703d9
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4703d9
mov ecx, dword [esi]
mov eax, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
mov edi, dword [esi + 0x10]
mov eax, dword [eax]
cmp eax, dword [edx]
mov eax, dword [esi + 8]
jne 0x470669
jmp 0x470912
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
test cl, cl
lea edx, [esi + 0x18]
mov ch, byte [esi + 0x63]
cmovs edx, eax
sub ebx, edx
mov dword [esi + 0x68], edx
mov edx, dword [esi + 0x5c]
sar ebx, 1
test ch, ch
mov dword [esi + 0xc], edx
movzx edx, ch
mov edi, edx
mov dword [esi + 0x88], edx
cmovs edx, dword [esi + 0xc]
cmp ebx, edx
jbe 0x470520
mov ebx, dword [esi + 0x68]
jmp 0x470585
mov dword [esi + 0x84], edx
mov edx, dword [esi + 0x58]
mov edi, dword [esi + 0xc]
test ch, ch
mov dword [esi + 0x50], edx
mov edx, dword [esi + 0x50]
lea edx, [edx + edi*2]
mov edi, dword [esi + 0x88]
mov dword [esi + 0xc], edx
lea edx, [esi + edi*2 + 0x58]
lea edi, [esi + 0x58]
cmovs edx, dword [esi + 0xc]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x50]
cmovns edx, edi
mov edi, dword [esi + 0x84]
add ebx, ebx
mov dword [esi + 0x50], edx
mov edx, dword [esi + 0x50]
lea edx, [edx + edi*2]
sub edx, ebx
cmp edx, dword [esi + 0xc]
je 0x470582
mov ebx, dword [esi + 0x68]
movzx edi, word [edx]
cmp di, word [ebx]
jne 0x47051b
add edx, 2
add ebx, 2
cmp edx, dword [esi + 0xc]
jne 0x47056f
mov ebx, dword [esi + 4]
test cl, cl
jns 0x47058e
mov ecx, dword [esi + 0x1c]
jmp 0x470594
movzx ecx, cl
lea eax, [esi + 0x18]
lea eax, [eax + ecx*2]
cmp ebx, eax
je 0x47063a
mov ecx, dword [ebp + 8]
mov dword [esi + 0x230], 1
mov dword [esi + 4], ebx
call fcn.00476ee4
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov edx, eax
test ecx, ecx
je 0x4705e8
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4705cc
movzx eax, word [eax]
jmp 0x4705dc
mov eax, dword [ecx]
mov byte [esi + 0xc], dl
call dword [eax + 0x20]
mov dl, byte [esi + 0xc]
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
cmp ax, 0xffff
je 0x4705e8
test dl, dl
jne 0x4705ee
jmp 0x47063c
xor ecx, ecx
test dl, dl
jne 0x47063c
mov eax, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470602
movzx eax, word [eax]
jmp 0x47060a
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esi + 4]
cmp ax, word [ebx]
jne 0x47063a
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470624
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x47062c
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ebx, dword [esi + 4]
mov cl, byte [esi + 0x23]
mov eax, dword [esi + 0x18]
add ebx, 2
jmp 0x470585
mov ecx, dword [esi]
bt dword [ebp + 0x18], 9
mov edi, dword [esi + 0x10]
jae case.default.0x46ff85
movzx eax, byte [esi + 0x23]
lea edx, [esi + 0x18]
test al, al
jns 0x470657
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
lea eax, [edx + eax*2]
cmp ebx, eax
mov eax, dword [esi + 8]
je 0x470669
jmp 0x470912
mov eax, dword [esi + 8]
inc edi
jmp 0x46ff11
cmp edi, eax
je 0x47070b
movzx eax, word [edi]
jmp 0x470713
mov eax, dword [ecx]
call dword [eax + 0x20]
mov word [esi + 4], ax
mov eax, dword [ebp + 8]
mov dl, byte [esi + 0x43]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
mov edi, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
test dl, dl
lea ebx, [esi + 0x38]
jns 0x4706a3
mov ebx, dword [esi + 0x38]
movzx eax, word [esi + 4]
cmp ax, word [ebx]
jne 0x4706c0
cmp edi, dword [esi + 0xc]
je 0x47074c
add edi, 2
mov dword [ecx + 0xc], edi
jmp 0x4707e6
cmp edi, dword [esi + 0xc]
je 0x470756
movzx eax, word [edi]
jmp 0x47075b
mov eax, dword [ecx]
call dword [eax + 0x20]
mov bl, byte [esi + 0x33]
test bl, bl
lea ecx, [esi + 0x28]
jns 0x4706e3
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
mov edi, dword [esi + 0x10]
jne 0x46ffa0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4707b0
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x4707b8
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x43]
test dl, dl
lea ecx, [esi + 0x38]
jns 0x47071d
mov ecx, dword [esi + 0x38]
cmp ax, word [ecx]
mov edi, dword [esi + 0x10]
jne 0x470741
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4707de
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x4707e6
mov eax, dword [ebp + 0x20]
mov byte [eax], 1
jmp 0x46ffa0
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x4707e3
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dl, byte [esi + 0x33]
lea ecx, [esi + 0x28]
test dl, dl
jns 0x470768
mov ecx, dword [esi + 0x28]
cmp ax, word [ecx]
jne 0x470912
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470786
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x47078e
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x33]
mov eax, dword [ebp + 0x20]
test dl, dl
mov byte [eax], 1
jns 0x47079d
mov eax, dword [esi + 0x2c]
jmp 0x4707a0
movzx eax, dl
cmp eax, 1
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
lea edx, [esi + 0x28]
jmp 0x470800
mov eax, dword [ecx]
call dword [eax + 0x24]
mov bl, byte [esi + 0x33]
mov eax, dword [ebp + 0x20]
test bl, bl
mov byte [eax], 1
jns 0x4707c7
mov eax, dword [esi + 0x2c]
jmp 0x4707ca
movzx eax, bl
cmp eax, 1
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
mov edi, dword [esi + 0x10]
cmova eax, ecx
jmp 0x46ffa3
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dl, byte [esi + 0x43]
test dl, dl
jns 0x4707ef
mov eax, dword [esi + 0x3c]
jmp 0x4707f2
movzx eax, dl
cmp eax, 1
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edi, dword [esi + 0x10]
lea edx, [esi + 0x38]
cmova eax, edx
jmp 0x470669
cmp dword [esi + 8], 0
mov dword [esi], ecx
je 0x4708e6
xor edi, edi
inc edi
mov ecx, dword [esi + 8]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x470825
mov eax, dword [ecx + 4]
cmp edi, eax
jae 0x4708e6
mov ecx, dword [ebp + 8]
mov dword [esi + 0x230], 1
mov dword [esi + 4], edi
call fcn.00476ee4
mov edi, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
test ecx, ecx
je 0x47085a
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x470865
movzx eax, word [eax]
jmp 0x470875
xor edx, edx
test bl, bl
je 0x47088d
jmp 0x470912
mov eax, dword [ecx]
mov byte [esi + 0xc], bl
call dword [eax + 0x20]
mov bl, byte [esi + 0xc]
mov edi, dword [esi + 4]
mov ecx, dword [esi]
xor edx, edx
cmp ax, 0xffff
sete al
je 0x470882
mov edx, ecx
xor bl, al
cmp bl, 1
jne 0x470912
mov eax, dword [ebp + 8]
mov dword [esi], edx
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4708a1
movzx eax, word [eax]
jmp 0x4708a9
mov eax, dword [ecx]
call dword [eax + 0x20]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xb], 0
jns 0x4708b7
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
cmp ax, word [ecx + edi*2]
jne 0x470912
mov eax, dword [ebp + 8]
inc edi
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4708d6
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x470817
mov eax, dword [ecx]
mov dword [esi + 4], edi
call dword [eax + 0x24]
mov edi, dword [esi + 4]
jmp 0x470817
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x14]
mov bl, 1
cmp eax, ecx
je 0x47091a
lea edi, [esi + 0x8c]
mov dword [edi], 0
push edi
push ecx
push eax
lea eax, [esi + 0x78]
push eax
call fcn.0046fa86
add esp, 0x10
cmp dword [edi], 0
je 0x47091a
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
or byte [eax], 4
cmp byte [esi + 0x63], 0
jns 0x47092b
push dword [esi + 0x58]
call fcn.005909b6
add esp, 4
cmp byte [esi + 0x33], 0
jns 0x47093c
push dword [esi + 0x28]
call fcn.005909b6
add esp, 4
cmp byte [esi + 0x43], 0
jns 0x47094d
push dword [esi + 0x38]
call fcn.005909b6
add esp, 4
cmp byte [esi + 0x23], 0
jns 0x47095e
push dword [esi + 0x18]
call fcn.005909b6
add esp, 4
cmp byte [esi + 0x83], 0
jns 0x470972
push dword [esi + 0x78]
call fcn.005909b6
add esp, 4
mov eax, dword [esi + 0x48]
mov dword [esi + 0x48], 0
test eax, eax
je 0x470995
mov dword [esi + 0x230], 0
push eax
mov dword [esi], ebx
call dword [esi + 0x4c]
mov ebx, dword [esi]
add esp, 4
mov eax, dword [esi + 0x228]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret