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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x164]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edx + 0x90]
jne 0x66547f
mov ecx, dword [ebp + 8]
add ecx, 0x120
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 0x124
mov dword [ebp - 4], edx
jmp 0x66549a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
call eax
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
add ecx, 5
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0x12
ja case.default.0x6654f9
mov edx, dword [ebp - 0xb8]
jmp dword [edx*4 + 0x666428]
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x665517
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
xor eax, eax
jmp 0x666421
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
je 0x665546
mov byte [ebp - 0x15], 0xa
push 1
lea eax, [ebp - 0x15]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x665567
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x665567
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x665577
mov eax, 3
jmp 0x666421
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
cmp edx, dword [ebp + 0xc]
je 0x66558f
mov eax, 0xd
jmp 0x666421
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x6655b5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
cmp dword [ebp + 0xc], 0
jle 0x6655e2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
cmp eax, dword [ebp + 0xc]
je 0x6655d3
mov eax, 0xd
jmp 0x666421
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
xor eax, eax
jmp 0x666421
mov eax, 3
jmp 0x666421
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, 4
jmp 0x666421
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x665615
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
mov eax, 5
jmp 0x666421
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x665636
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
mov eax, 6
jmp 0x666421
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
sub eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x30]
call edx
add esp, 0xc
mov byte [ebp - 0x21], al
movsx eax, byte [ebp - 0x21]
test eax, eax
je 0x6656b7
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
je 0x665691
push 1
lea edx, [ebp - 0x21]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
call eax
add esp, 0xc
jmp 0x6656b2
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x50], 0
je 0x6656b2
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x50
push edx
call fcn.0066ecf0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x6656f1
mov eax, 1
jmp 0x666421
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066e360
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x60]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x81]
test ecx, ecx
je 0x665732
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x82]
test eax, eax
je 0x66575b
cmp dword [ebp - 0x1c], 0
jne 0x665744
mov eax, 0xb
jmp 0x666421
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 0x22]
test edx, edx
jne 0x665759
mov eax, 0x18
jmp 0x666421
jmp 0x6657aa
cmp dword [ebp - 0x1c], 0
jne 0x6657aa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
je 0x665784
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
call edx
add esp, 0xc
jmp 0x6657a5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
je 0x6657a5
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 0x20]
test eax, eax
je 0x6657bf
mov eax, 0xc
jmp 0x666421
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1c], 0
je 0x6657d2
mov eax, 0xf
jmp 0x666421
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
je 0x665860
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x134]
test ecx, ecx
jne 0x665838
mov edx, dword [ebp + 8]
cmp dword [edx + 0x78], 0
je 0x665812
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
call edx
add esp, 0xc
jmp 0x665833
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
je 0x665833
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
push 0
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066b500
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x66585b
mov eax, dword [ebp - 0x28]
jmp 0x666421
jmp 0x665904
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x70], 0
je 0x6658e3
mov edx, dword [ebp - 0x1c]
mov byte [edx + 0x20], 1
mov eax, dword [ebp + 8]
push eax
call fcn.0066cdd0
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 0x20], 0
cmp dword [ebp - 0x2c], 0
jne 0x665896
mov eax, 1
jmp 0x666421
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70]
call eax
add esp, 0x14
test eax, eax
jne 0x6658cf
mov eax, 0x15
jmp 0x666421
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1b0]
mov dword [ecx + 0x1ac], eax
jmp 0x665904
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x50], 0
je 0x665904
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x170], 0
je 0x665937
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x170]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x170]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx + 0x170], eax
jmp 0x66599b
push 0x30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
call edx
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x665957
mov eax, 1
jmp 0x666421
push 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 4
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x24], 0
jne 0x66598c
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call eax
add esp, 4
mov eax, 1
jmp 0x666421
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x24]
add edx, 0x20
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x16c]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x16c], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x14], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x44]
mov edx, dword [ebp - 0x30]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x30]
add ecx, dword [edx + 8]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x28]
sub edx, 1
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0x14
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax + 0x24]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
jae 0x665a76
cmp dword [ebp - 0x48], 1
jne 0x665a81
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0x18], ecx
jmp 0x665ade
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov ecx, dword [edx + 0x28]
sub ecx, dword [eax + 0x24]
shl ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
call eax
add esp, 8
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x665abb
mov eax, 1
jmp 0x666421
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], edx
jmp 0x665a34
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x24]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x34]
mov byte [eax], 0
mov ecx, dword [ebp - 0x30]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0xc
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.006664f0
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x665b23
mov eax, dword [ebp - 0x38]
jmp 0x666421
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
je 0x665b51
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x188]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
call edx
add esp, 0xc
jmp 0x665b72
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
je 0x665b72
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066c6e0
add esp, 0x10
mov edx, dword [ebp + 8]
add edx, 0x1a0
push edx
call fcn.0066e9b0
add esp, 4
jmp 0x6663d8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x44]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x71], 1
mov edx, dword [ebp - 0x70]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x20]
call edx
add esp, 8
add eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1a0
push edx
call fcn.0066ecf0
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x665be4
mov eax, 1
jmp 0x666421
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1ac]
mov dword [eax + 0x1b0], edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.006664f0
add esp, 0x14
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
je 0x665c33
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00666480
add esp, 8
mov eax, dword [ebp - 0x78]
jmp 0x666421
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1ac]
mov dword [ecx + 0x1b0], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x34], 0
je 0x665c72
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x188]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
call edx
add esp, 0xc
mov byte [ebp - 0x71], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x665ca8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x34], 0
je 0x665c8e
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
call eax
add esp, 8
mov byte [ebp - 0x71], 0
movzx ecx, byte [ebp - 0x71]
test ecx, ecx
je 0x665cd1
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x665cd1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x1a0
push ecx
call fcn.0066e9b0
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00666480
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x138], 0
jne 0x665d1c
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066b2a0
add esp, 0x10
jmp 0x666421
jmp 0x6663d8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
cmp ecx, dword [ebp + 0xc]
jne 0x665d3e
mov eax, 0xd
jmp 0x666421
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x16c]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov dword [ecx + 0x16c], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x170]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x7c]
mov dword [ecx + 0x170], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
cmp eax, dword [edx + 8]
jne 0x665dbd
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x7c]
mov esi, dword [edx + 4]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x665dd2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x84]
mov dword [ecx], edx
mov eax, 7
jmp 0x666421
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
sub ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x138], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x38], 0
je 0x665f12
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xec]
test ecx, ecx
je 0x665ef7
cmp dword [ebp - 0x88], 0
je 0x665ef7
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x7c]
add eax, dword [ecx + 0x1c]
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x88]
movsx eax, byte [edx]
test eax, eax
je 0x665e6e
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
jmp 0x665e31
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xed]
test eax, eax
je 0x665eee
cmp dword [ebp - 0x8c], 0
je 0x665eee
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp + 8]
mov al, byte [edx + 0x1d8]
mov byte [ecx], al
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x8c]
movsx eax, byte [edx]
test eax, eax
je 0x665eee
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x90]
add ecx, 1
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
jmp 0x665eb1
mov eax, dword [ebp - 0x90]
mov byte [eax], 0
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
call eax
add esp, 8
jmp 0x665f33
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x50], 0
je 0x665f33
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066c6e0
add esp, 0x10
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x2c], 0
je 0x665fb7
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x94], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68], 0
je 0x665f6e
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
call ecx
add esp, 8
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [eax + 4]
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x178]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x178], ecx
mov edx, dword [ebp - 0x94]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
jmp 0x665f33
mov eax, dword [ebp + 8]
cmp dword [eax + 0x138], 0
jne 0x665fe0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066b2a0
add esp, 0x10
jmp 0x666421
jmp 0x6663d8
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x2c]
call edx
add esp, 8
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jge 0x666011
mov eax, 0xe
jmp 0x666421
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x66604c
lea ecx, [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.00681c80
add esp, 8
push eax
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x66606d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x66606d
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov eax, 0x11
jmp 0x666421
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
je 0x6660a9
mov byte [ebp - 0x9d], 0xa
push 1
lea edx, [ebp - 0x9d]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
call eax
add esp, 0xc
jmp 0x6660ca
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x50], 0
je 0x6660ca
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x48], 0
je 0x6660ec
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
call ecx
add esp, 4
jmp 0x66610d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x66610d
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
movzx ecx, byte [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00667e70
add esp, 0x18
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
je 0x66614a
mov eax, dword [ebp - 0xa4]
jmp 0x666421
cmp dword [ebp - 0x14], 0
jne 0x666168
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x118], 0x667d50
mov eax, dword [ebp - 0xa4]
jmp 0x666421
jmp 0x6663d8
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x666184
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
mov edx, dword [ebp + 8]
cmp dword [edx + 0x3c], 0
je 0x666214
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + 0x48]
test ecx, ecx
jne 0x6661f5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
push edx
lea eax, [ebp - 0xa8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xa8]
sub ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x666212
mov edx, dword [ebp + 0x18]
sub edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x666235
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x666235
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x66624d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
mov eax, 3
jmp 0x666421
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
cmp ecx, dword [ebp + 0xc]
je 0x66626d
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, 0xd
jmp 0x666421
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
xor eax, eax
jmp 0x666421
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x666347
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + 0x48]
test eax, eax
jne 0x66632a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0x14
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xb0]
sub edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [ebp - 0xac]
add esp, 0xc
cmp dword [ebp - 0xb4], 0
je 0x666319
cmp dword [ebp - 0xb4], 1
jne 0x66631b
jmp 0x666328
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
jmp 0x6662a4
jmp 0x666345
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [ebp - 0xac]
add esp, 0xc
jmp 0x666368
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x50], 0
je 0x666368
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0066c6e0
add esp, 0x10
jmp 0x6663d8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c460
add esp, 0x10
test eax, eax
jne 0x666390
mov eax, 1
jmp 0x666421
jmp 0x6663d8
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066c630
add esp, 0x10
test eax, eax
jne 0x6663b5
mov eax, 1
jmp 0x666421
jmp 0x6663d8
mov edx, dword [ebp + 8]
cmp dword [edx + 0x50], 0
je 0x6663d8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0066c6e0
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1e0]
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 2
je 0x666415
cmp dword [ebp - 0xbc], 3
je 0x666409
jmp 0x66641c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x666421
mov eax, 0x23
jmp 0x666421
jmp 0x6654a2
pop edi
pop esi
mov esp, ebp
pop ebp
ret