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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov esi, dword [edi + 8]
mov eax, dword [edi]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x64], 0
mov byte [esp + 0x3b], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
test esi, esi
jne 0x46f196
cmp dword [edi + 0x74], esi
jne 0x46f187
test byte [eax + 0x4c], 8
jne 0x46f187
mov byte [edi + 0x17], 1
call fcn.00436cd0
mov edx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x58], esi
test byte [edx + 0x24], 0x20
movsx eax, word [edx + 0x2a]
mov dword [esp + 0x2c], eax
jne 0x46f1b6
mov dword [esp + 0x3c], 0
mov dword [esp + 0x60], 1
jmp 0x46f1e1
mov ecx, dword [edx + 8]
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x46f1d9
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
je 0x46f1d1
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x46f1c1
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
movzx ecx, word [ecx + 0x32]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x30], 2
test eax, eax
jle 0x46f4eb
mov eax, dword [ebp + 0x14]
xor edx, edx
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], edi
lea ecx, [eax + 1]
mov dword [esp + 0x44], 1
not eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], eax
add ecx, eax
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp ecx, eax
je 0x46f4b4
cmp dword [ebp + 0x2c], 0
je 0x46f237
cmp dword [edi], 0
jl 0x46f4b4
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov al, byte [edx + eax + 0xc]
movzx ecx, al
test al, al
je 0x46f4b4
mov ah, byte [ebp + 0x20]
cmp ah, 0xb
jne 0x46f281
cmp al, ah
jne 0x46f281
mov edi, 2
mov ecx, dword [esp + 0x1c]
lea eax, [edi - 1]
mov dword [esp + 0x40], 0
cmp eax, 4
ja case.0x46f27a.4
jmp dword [eax*4 + 0x470908]
cmp ah, 0xb
movzx edi, ah
cmove edi, ecx
cmp edi, 5
jne 0x46f262
mov ecx, dword [esp + 0x1c]
mov eax, 2
cmp dword [edx + ecx + 4], 0
cmove edi, eax
jmp 0x46f266
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
dec dword [eax + 0x38]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
cmp dword [esi + 0x70], ecx
jg 0x46f2d1
push 0
push edx
push edi
mov edx, 0x33
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46f2fc
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edi
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + edx + 4]
call fcn.004532f0
mov ecx, dword [esi + 0x6c]
add esp, 4
mov edx, dword [esp + 0x40]
cmp dword [esi + 0x70], ecx
jg 0x46f339
push 0
push edx
push edi
mov edx, 0x33
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46f364
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x33
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x34]
mov edi, 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov eax, dword [esp + 0x14]
mov byte [ecx + 0x15], 1
mov ecx, dword [eax + 4]
mov eax, dword [edx + ecx]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push str._s._s
push dword [esp + 0x68]
call fcn.00418310
mov ecx, dword [esi + 0x6c]
add esp, 0x10
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x70], ecx
jg 0x46f3c7
push edx
push edi
push 0x513
mov edx, 0x44
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46f3f2
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], 0x513
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
cmp byte [ecx + 0x51], 0
je 0x46f40e
push edx
mov edx, 0xfffffff9
call fcn.00437920
add esp, 4
jmp 0x46f420
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf9
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x46f436
mov edx, dword [esp + 0x44]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x40]
test edx, edx
je 0x46f4b4
mov ecx, dword [esi + 0xc]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46f458
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x46f4b4
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x46f4b4
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x28]
cmp dword [esi + 0x70], ecx
jg 0x46f486
push 0
push dword [ebp + 0x24]
mov ecx, esi
push edx
mov edx, 0x32
call fcn.00436f60
add esp, 0xc
jmp 0x46f4b4
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + ecx*4], 0x32
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
inc ecx
add dword [esp + 0x24], 4
add eax, ecx
add dword [esp + 0x34], 0x10
cmp eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
jl 0x46f216
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x46f715
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, 0
jne 0x46f715
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov al, byte [ebp + 0x20]
movzx edi, al
cmp al, 0xb
jne 0x46f526
mov edi, 2
xor edx, edx
mov dword [esp + 0x40], edx
cmp dword [ecx], edx
jle 0x46f70a
lea eax, [ecx + 8]
mov dword [esp + 0x24], eax
nop dword [eax + eax]
mov ecx, dword [eax - 4]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x44], ecx
test eax, eax
je 0x46f5b0
mov dword [esp + 0xa8], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0x94], 0x46f0e0
mov dword [esp + 0xa8], eax
test ecx, ecx
je 0x46f599
mov edx, ecx
lea ecx, [esp + 0x90]
call fcn.00449540
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
cmp byte [ebp + 0x1c], 0
mov al, byte [esp + 0xa4]
jne 0x46f5a8
and al, 0xfd
test al, al
je 0x46f6ee
mov edx, dword [esp + 0x18]
push 0x10
dec dword [edx + 0x38]
mov eax, dword [edx + 0x38]
push eax
push ecx
push edx
mov dword [esp + 0x54], eax
call fcn.00453740
add esp, 0x10
cmp edi, 4
jne 0x46f628
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46f5f1
push 0
push dword [ebp + 0x24]
lea edx, [edi + 7]
mov ecx, esi
push 0
call fcn.00436f60
add esp, 0xc
jmp 0x46f6c3
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x46f6c3
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x46f640
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
cmp edi, 5
mov eax, 2
cmove edi, eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x46f678
cmp dword [ecx + 0x74], eax
jne 0x46f66b
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x46f66b
mov byte [ecx + 0x17], 1
call fcn.00436cd0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
cmp edi, 2
jne 0x46f689
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x1c]
mov edx, 0x45
push 0
push dword [esp + 0x30]
push 0
push edi
push 0x113
call fcn.00437270
mov eax, dword [esp + 0x30]
add esp, 0x14
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jle 0x46f6c3
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 3
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x44]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46f6e1
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x46f6ea
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
inc edx
mov eax, dword [esp + 0x24]
add eax, 0x18
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], eax
cmp edx, dword [ecx]
jl 0x46f540
mov edi, dword [esp + 0x18]
mov dword [edi + 0x34], 0
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x46f79c
cmp dword [edx], 0
jne 0x46f730
xor edx, edx
mov byte [ebp + 0x20], 4
mov dword [ebp + 0x30], edx
jmp 0x46f79c
mov eax, dword [edx + 0x10]
mov dword [esp + 0x64], eax
test eax, eax
je 0x46f79c
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x68], ecx
cmp dword [esi + 0x70], ecx
jg 0x46f765
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00436f60
mov edx, dword [ebp + 0x30]
add esp, 0xc
mov dword [esp + 0x68], eax
jmp 0x46f79c
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp + 0x1c], 0
mov dword [esp + 0x8c], 0x35
je 0x46fb96
cmp dword [esp + 0x3c], 0
jne 0x46fb96
mov ecx, dword [esp + 0x14]
dec dword [edi + 0x38]
cmp byte [ebp + 0x20], 0xb
mov edi, dword [edi + 0x38]
movzx eax, byte [ecx + 0x30]
mov dword [esp + 0x24], edi
je 0x46f7da
movzx eax, byte [ebp + 0x20]
jmp 0x46f7e2
cmp eax, 0xb
cmove eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x46f805
cmp dword [edx + 0x10], 0
jne 0x46f805
xor eax, eax
cmp dword [edx + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x1c], eax
jmp 0x46f872
cmp eax, 5
jne 0x46f872
cmp byte [ebp + 0x20], al
je 0x46f872
cmp dword [ecx + 8], 0
je 0x46f872
mov edx, dword [esi + 0x6c]
cmp dword [esi + 0x70], edx
jg 0x46f834
push 0
push 0
push 0
lea edx, [eax + 6]
mov ecx, esi
call fcn.00436f60
add esp, 0xc
mov edx, eax
jmp 0x46f86b
mov edi, dword [esp + 0x24]
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edx + 1]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x46f8db
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46f897
push eax
push edi
push dword [ebp + 0x14]
mov edx, 0x35
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46f8c4
mov edx, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x46f8db
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebp + 0xc]
cmp dword [esi + 0x70], ecx
jg 0x46f8fc
push dword [ebp + 0x14]
mov ecx, esi
push edi
push edx
mov edx, 0x1f
call fcn.00436f60
add esp, 0xc
jmp 0x46f926
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + ecx*4], 0x1f
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x1c]
lea eax, [edx - 1]
cmp eax, 5
ja case.default.0x46f936
jmp dword [eax*4 + 0x47091c]
mov eax, dword [esp + 0x5c]
xor edi, edi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, edi
je 0x46f998
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x46f96e
mov edx, dword [esp + 0x14]
call fcn.00485d70
mov edx, eax
mov ecx, edx
test edx, edx
je 0x46f987
cmp byte [ecx + 8], 0x79
jne 0x46f980
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x46f974
xor eax, eax
test edi, edi
cmovne eax, edx
mov dword [esp + 0x1c], eax
mov edi, eax
test eax, eax
jne 0x46f9f0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 0
call fcn.0046bea0
add esp, 8
test eax, eax
jne 0x46f9f0
mov edx, dword [esp + 0x14]
cmp dword [edx + 8], eax
je 0x46fa24
mov edi, dword [esp + 0x18]
mov ecx, edi
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov eax, dword [edi + 0x74]
test eax, eax
push dword [ebp + 0xc]
cmovne ecx, eax
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.00466160
mov edi, dword [esp + 0x34]
add esp, 0x10
mov dword [esp + 0x6c], 1
jmp 0x46fae3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 1
mov eax, dword [ecx + 0x74]
test eax, eax
push 5
push 0
push 1
push dword [ebp + 0x14]
cmovne ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x38]
push edi
call fcn.00465c00
add esp, 0x24
mov edi, dword [esp + 0x24]
mov dword [esp + 0x6c], 1
jmp 0x46fae3
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [eax + 0x14]
mov ecx, dword [ecx]
call fcn.0044d700
mov ecx, dword [ebp + 0x30]
add esp, 4
mov edx, eax
push ecx
push 0
push 0
push 2
push dword [ecx + 0xc]
push dword [ecx + 8]
mov ecx, dword [esp + 0x30]
call fcn.00487b50
mov eax, dword [ebp + 0x30]
add esp, 0x18
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46fa9a
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00436f60
add esp, 0xc
jmp 0x46fae3
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x46fae3
mov edx, 2
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
call fcn.00463380
add esp, 4
mov ecx, dword [esi + 0xc]
not edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46fafd
push edi
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x46fb06
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edi*4], eax
mov edi, dword [esp + 0x74]
test edi, edi
je 0x46fb96
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x78], ecx
cmp dword [esi + 0x70], ecx
jg 0x46fb39
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00436f60
add esp, 0xc
mov dword [esp + 0x78], eax
jmp 0x46fb6c
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
lea ecx, [edi - 1]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x46fb81
mov eax, 0x50caf0
jmp 0x46fb94
test ecx, ecx
mov eax, edx
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4707e5
nop
mov edi, dword [ebp + 8]
cmp dword [edi + ecx*4], 0
mov edi, dword [esp + 0x18]
je 0x4707c8
cmp dword [esp + 0x64], eax
jne 0x46fc6e
mov eax, dword [esp + 0x68]
mov ecx, dword [esi + 0x6c]
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x70], ecx
cmp dword [esi + 0x70], ecx
jg 0x46fbfb
push 0
push 0
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00436f60
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x46fc2e
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x46fc4b
mov eax, 0x50cae8
mov dword [eax + 8], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
jmp 0x46fc78
mov ecx, dword [esp + 0x68]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
lea eax, [eax + ecx*4]
mov eax, dword [esp + 0x20]
jmp 0x46fc78
dec dword [edi + 0x38]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x28], ecx
cmp byte [esp + 0x3b], 0
jne 0x46fc9f
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x46fc8b
cmp ecx, eax
jne 0x46fc9f
mov eax, dword [ebp + 0x14]
mov ecx, esi
inc eax
push eax
call fcn.0046ccf0
add esp, 4
mov byte [esp + 0x3b], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x24], 0
je 0x46fd7f
mov eax, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46fcde
push 0
push edx
push 0
mov edx, 0x49
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46fd11
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x49
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x24]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x46fd40
push 0
push 0
mov ecx, eax
call fcn.0044d210
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x1c]
jmp 0x46fd42
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x46fd5f
push 0x10
push dword [esp + 0x2c]
push edi
push dword [esp + 0x24]
call fcn.00453c80
mov eax, dword [esp + 0x2c]
add esp, 0x10
test edi, edi
je 0x46fd6c
mov edx, edi
mov ecx, eax
call fcn.0044d010
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x34], 0
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 8]
xor edi, edi
movzx eax, word [eax + 0x34]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x44], edi
mov edx, dword [edx + ecx*4]
lea ecx, [edx + 1]
mov dword [esp + 0x4c], ecx
mov ecx, eax
cmp di, ax
jae 0x46fedf
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
jmp 0x46fdb9
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
movsx edx, word [eax + edi*2]
cmp edx, 0xfffffffe
jne 0x46fe3c
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0x14]
not eax
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + ecx + 4]
mov eax, dword [edi]
mov dword [esp + 0x24], eax
test edx, edx
je 0x46fe00
push 0
push 0
mov ecx, eax
call fcn.0044d210
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x24]
jmp 0x46fe02
xor edi, edi
cmp byte [eax + 0x51], 0
jne 0x46fe1f
mov ecx, dword [esp + 0x30]
mov edx, edi
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004532f0
mov eax, dword [esp + 0x28]
add esp, 4
test edi, edi
je 0x46fe2c
mov edx, edi
mov ecx, eax
call fcn.0044d010
mov eax, dword [esp + 0x18]
mov dword [eax + 0x34], 0
jmp 0x46feb3
cmp edx, 0xffffffff
je 0x46fe55
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x28]
cmp edx, eax
je 0x46fe55
mov edi, dword [ebp + 0x14]
inc edi
add edi, edx
jmp 0x46fe58
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x6c]
sar edx, 0x1f
and edx, 1
add edx, 0x4f
cmp dword [esi + 0x70], ecx
jg 0x46fe7d
mov ecx, dword [esp + 0x30]
push 0
push ecx
push edi
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46feb3
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], dl
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], 0
lea eax, [eax + ecx*4]
xor ecx, ecx
mov dword [eax + 0x10], 0
mov word [eax + 2], cx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add dword [esp + 0x1c], 0x18
inc edi
inc dword [esp + 0x30]
movzx ecx, word [eax + 0x34]
mov dword [esp + 0x2c], edi
cmp edi, ecx
jl 0x46fdb5
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
movzx edi, cx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x46ff01
push edx
push edi
push dword [esp + 0x54]
mov edx, 0x5c
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x46ff30
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
je 0x46ff77
cmp edx, ecx
jne 0x46ff77
cmp byte [ebp + 0x1c], 0
jne 0x46ff77
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46ff69
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x4707c4
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
jmp 0x4707c4
movzx eax, byte [ecx + 0x36]
test eax, eax
jne 0x46ffa0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46ff69
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x4707c4
cmp byte [ebp + 0x20], 0xb
je 0x46ffac
movzx eax, byte [ebp + 0x20]
jmp 0x46ffb7
cmp eax, 0xb
mov edi, 2
cmove eax, edi
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x64], ecx
jne 0x46ffd7
mov edi, dword [ebp + 0x30]
xor eax, eax
cmp dword [edi + 8], eax
setne al
lea eax, [eax*2 + 4]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x34], 0
jne 0x4700ba
cmp dword [ecx + 0x14], 0
jne 0x4700ba
cmp edx, ecx
jne 0x4700ba
cmp eax, 5
jne 0x4700ba
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x80], eax
je 0x47005e
mov ecx, dword [esp + 0x18]
xor edx, edx
xor edi, edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x470033
mov edx, dword [esp + 0x14]
call fcn.00485d70
mov edx, eax
mov ecx, edx
test edx, edx
je 0x470053
nop dword [eax]
cmp byte [ecx + 8], 0x79
jne 0x47004c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x470040
xor eax, eax
test edi, edi
cmovne eax, edx
test eax, eax
jne 0x4700ba
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x80], eax
je 0x470095
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
jne 0x4700ba
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.0041a500
add esp, 4
cmp dword [eax + 8], 0
jne 0x4700ba
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x46ff69
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x4707c4
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x6c]
movzx edi, word [eax + 0x32]
cmp dword [esi + 0x70], edx
jg 0x4700e9
push dword [esp + 0x4c]
mov edx, 0x1b
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x58]
call fcn.00436f60
add esp, 0xc
mov edx, eax
jmp 0x470120
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov esi, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x1b
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x51], 0
jne 0x470137
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
cmp edx, eax
jne 0x47014d
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x30], edi
jmp 0x4701af
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
cmp eax, 1
jne 0x47017a
mov al, byte [edx + 0x13]
test al, al
jne 0x470169
inc dword [edx + 0x2c]
mov edi, dword [edx + 0x2c]
jmp 0x4701a3
dec al
mov byte [edx + 0x13], al
movzx eax, al
mov edi, dword [edx + eax*4 + 0x94]
jmp 0x4701a3
mov ecx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x30], edi
cmp eax, ecx
jg 0x470196
add eax, edi
sub ecx, dword [esp + 0x60]
mov dword [edx + 0x20], eax
mov dword [edx + 0x1c], ecx
jmp 0x4701a7
mov eax, dword [edx + 0x2c]
lea edi, [eax + 1]
add eax, dword [esp + 0x60]
mov dword [edx + 0x2c], eax
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
cmp dword [ebp + 0x18], 0
jne 0x4701c0
cmp dword [esp + 0x1c], 5
jne 0x47053c
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x24], 0x20
jne 0x470295
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4701ee
push 0
push edi
push dword [esp + 0x58]
mov edx, 0x87
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x47021d
mov edx, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x87
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x47053c
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x470247
push eax
push dword [esp + 0x2c]
mov edx, 0x35
mov ecx, esi
push edi
call fcn.00436f60
add esp, 0xc
jmp 0x470275
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x47053c
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x47053c
cmp edx, eax
je 0x470365
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x2c], edi
cmp cx, word [eax + 0x32]
jae 0x470365
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
movzx edx, word [edx + 0x34]
xor ecx, ecx
test edx, edx
je 0x4702e0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
movzx edi, word [eax + edi*2]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
cmp di, word [eax]
je 0x470309
inc ecx
add eax, 2
cmp ecx, edx
jl 0x4702d3
or eax, 0xffffffff
mov ecx, dword [esi + 0x6c]
movsx edx, ax
cmp dword [esi + 0x70], ecx
jg 0x47030e
mov edi, dword [esp + 0x24]
mov ecx, esi
push edi
push edx
push dword [esp + 0x58]
mov edx, 0x5a
call fcn.00436f60
add esp, 0xc
jmp 0x47033d
movzx eax, cx
jmp 0x4702e3
mov edi, dword [esp + 0x50]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x5a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x3c]
inc edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x24], edi
mov edi, ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jl 0x4702b7
mov eax, dword [esp + 0x3c]
cmp dword [ebp + 0x18], 0
je 0x47053c
movzx ecx, word [eax + 0x32]
mov eax, dword [edx + 0x38]
mov edi, dword [esi + 0x6c]
and al, 3
mov edx, dword [esp + 0x30]
add edi, ecx
cmp al, 2
mov dword [esp + 0x2c], 0x34
cmove edx, dword [esp + 0x4c]
mov dword [esp + 0x80], edx
xor edx, edx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x47053c
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x7c], edi
mov eax, dword [eax + 0x20]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], edx
mov ecx, dword [eax]
mov al, byte [ecx + 0x4e]
mov byte [esp + 0x4b], al
mov al, byte [ecx + 0xa5]
mov byte [esp + 0x57], al
movzx eax, al
push eax
push edx
mov dl, byte [esp + 0x53]
call fcn.00464010
add esp, 8
mov edi, eax
cmp byte [esp + 0x57], 0
jne 0x470409
test edi, edi
je 0x4703f2
cmp dword [edi + 0xc], 0
jne 0x470409
push dword [esp + 0x44]
mov dl, byte [esp + 0x4f]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00463d90
add esp, 8
mov edi, eax
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
movzx eax, word [esi + 0x32]
mov esi, dword [esp + 0x2c]
dec eax
cmp edx, eax
cmove esi, dword [esp + 0x8c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x28]
mov eax, esi
cmovne eax, dword [esp + 0x7c]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
inc eax
mov edx, dword [esi + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov dword [esp + 0x7c], ecx
cmp dword [esi + 0x70], edx
jg 0x47047f
mov edx, dword [esp + 0x2c]
push ecx
push dword [esp + 0x44]
mov ecx, esi
push eax
call fcn.00436f60
add esp, 0xc
mov edx, eax
jmp 0x4704bc
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x2c]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
cmp byte [ecx + 0x51], 0
je 0x4704d4
push edi
mov edx, 0xfffffffe
call fcn.00437920
add esp, 4
jmp 0x470508
test edx, edx
jns 0x4704dc
mov edx, dword [esi + 0x6c]
dec edx
mov eax, dword [esi + 0x68]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4704fd
push 0xfffffffffffffffe
push edi
mov edx, eax
mov ecx, esi
call fcn.00437ab0
add esp, 8
jmp 0x470508
test edi, edi
je 0x470508
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfe
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x47051f
lea ecx, [eax + eax*4]
mov edx, 0x90
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
inc edx
mov dword [esp + 0x24], edx
movzx eax, word [eax + 0x32]
cmp edx, eax
jl 0x4703a5
mov edi, dword [esp + 0x1c]
lea eax, [edi - 1]
cmp eax, 5
ja case.0x47054c.5
jmp dword [eax*4 + 0x470934]
push dword [esp + 0x20]
mov edx, edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.00463140
add esp, 4
jmp 0x4706cd
push dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push dword [esp + 0x24]
mov edx, dword [ebp + 0x30]
push dword [esp + 0x1c]
call fcn.0048a2e0
add esp, 0xc
jmp 0x47058f
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4705b2
push 0
push dword [ebp + 0x24]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00436f60
add esp, 0xc
jmp 0x4706cd
mov edx, dword [ebp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4706cd
mov eax, dword [esp + 0x5c]
xor edi, edi
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, edi
je 0x470644
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
and eax, 0x40000
or eax, edx
je 0x47061a
mov edx, dword [esp + 0x14]
call fcn.00485d70
mov edx, eax
mov ecx, edx
test edx, edx
je 0x470633
cmp byte [ecx + 8], 0x79
jne 0x47062c
movzx eax, byte [ecx + 9]
or edi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x470620
xor ecx, ecx
test edi, edi
cmovne ecx, edx
mov dword [esp + 0x44], ecx
mov edi, ecx
test ecx, ecx
jne 0x47067d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x47068d
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.0041a500
add esp, 4
cmp dword [eax + 8], 0
jne 0x47067d
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], 0
je 0x47068d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x14], 1
push dword [esp + 0x50]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x24], eax
mov edx, dword [esp + 0x18]
sete al
movzx eax, al
push eax
push 5
push 0
push dword [esp + 0x70]
push dword [esp + 0x44]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00465c00
add esp, 0x24
mov dword [esp + 0x6c], 1
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x20]
jne 0x470761
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x6c]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x4706fe
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x470731
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x470746
mov eax, 0x50cae8
mov dword [eax + 8], edx
jmp 0x470788
mov ecx, dword [esp + 0x70]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x470788
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x47077f
push edx
mov edx, esi
call fcn.00437560
add esp, 4
jmp 0x470788
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x4c]
je 0x4707c4
mov eax, dword [esp + 0x60]
cmp eax, 1
jne 0x4707b9
test ecx, ecx
je 0x4707c4
mov al, byte [edi + 0x13]
mov edx, dword [esp + 0x14]
cmp al, 8
jae 0x4707c8
movzx eax, al
mov dword [edi + eax*4 + 0x94], ecx
inc byte [edi + 0x13]
jmp 0x4707c8
cmp eax, dword [edi + 0x1c]
jle 0x4707c4
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
inc dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov edi, dword [edi + 0x14]
mov eax, edi
mov dword [esp + 0x20], edi
test edi, edi
jne 0x46fbb0
mov edx, dword [esp + 0x74]
test edx, edx
je 0x470868
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x47080f
push 0
push edx
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x47083e
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x470850
mov eax, 0x50cae8
jmp 0x470865
mov ecx, dword [esp + 0x78]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
test byte [eax + 0x24], 0x20
jne 0x4708f8
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 0x34]
movsx edx, word [eax + 0x2a]
mov eax, dword [ebp + 0x14]
inc eax
mov edi, dword [ecx + edi*4]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x80], edi
cmp dword [esi + 0x70], ecx
jg 0x4708ab
push edi
push edx
push eax
mov edx, 0x5c
mov ecx, esi
call fcn.00436f60
add esp, 0xc
jmp 0x4708e1
mov edi, dword [ebp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
inc edi
mov esi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x80]
mov dword [eax + ecx*4], 0x5c
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x3b], 0
jne 0x4708f8
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
call fcn.0046ccf0
add esp, 4
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret