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

Disassembly:
push 0xffffffffffffffff
push 0x87ecc7
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov eax, dword [esp + 0x184]
mov ebp, ecx
mov dword [esp + 0x4c], eax
xor esi, esi
push esi
push 0x100000
push esi
lea ecx, [esp + 0xb8]
mov dword [esp + 0x184], esi
call fcn.0065c3c0
mov ecx, dword [esp + 0x180]
push ecx
lea ecx, [esp + 0xb0]
mov byte [esp + 0x17c], 1
call fcn.0065d320
test al, al
jne 0x65a828
mov eax, dword [esp + 0xdc]
add eax, 0xfffffff0
mov byte [esp + 0x178], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x65a7df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x178], 0
call fcn.007e4df4
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65a821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x65aceb
or eax, 0xffffffff
xor bl, bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.007cff5d
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x65a863
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x178], 3
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xb0]
call fcn.0065cce0
test eax, eax
je 0x65ac4f
lea ecx, [esp + 0x18]
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
test esi, esi
jne 0x65a93f
mov ecx, 0xa
mov esi, 0x444960
lea edi, [esp + 0x140]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jl 0x65a935
lea edx, [esp + 0x140]
push edx
push edi
call fcn.0080292f
add esp, 8
test eax, eax
je 0x65a935
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
js 0x65a935
lea eax, [esp + 0x140]
lea edx, [eax + 2]
jmp 0x65a900
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x65a900
mov ebx, dword [esp + 0x4c]
sub eax, edx
sar eax, 1
push ebx
add eax, esi
lea eax, [edi + eax*2]
push 0x403a48
push eax
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jne 0x65a935
cmp dword [ebx], 7
jle 0x65a9e6
mov byte [esp + 0x17], 1
jmp 0x65ac3a
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x65ac3a
js 0x65ba15
cmp word [edx], 0x23
jne 0x65a9e6
mov ecx, 6
mov esi, 0x444944
lea edi, [esp + 0x124]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, edx
test eax, eax
jl 0x65ac3a
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.0080292f
add esp, 8
test eax, eax
je 0x65ac3a
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
js 0x65ac3a
lea eax, [esp + 0x124]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x65a9b0
sub eax, edx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x48]
push ecx
sar eax, 1
lea edx, [esp + 0x50]
push edx
add eax, esi
lea eax, [edi + eax*2]
push 0x444920
push eax
call fcn.00803d5e
add esp, 0x14
jmp 0x65ac3a
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x65ac3a
push 0x3a
push eax
call fcn.0080308d
add esp, 8
test eax, eax
je 0x65ac3a
sub eax, dword [esp + 0x18]
sar eax, 1
mov esi, eax
test esi, esi
jle 0x65ac3a
push esi
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x20]
call fcn.004ac570
mov ecx, eax
mov byte [esp + 0x178], 4
call fcn.004b1130
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004a9b50
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
mov byte [esp + 0x178], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x65aa78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
push esi
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x20]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 7
call fcn.004aa540
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
mov byte [esp + 0x178], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x65aac8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.004aa620
mov ecx, eax
call fcn.004aa3a0
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx - 0xc], esi
jne 0x65ab00
lea eax, [edi - 0x10]
mov byte [esp + 0x178], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x65ac2e
lea ecx, [esp + 0x1c]
push 0x4417bc
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65ab55
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x94]
push eax
push 0x41b9cc
push ecx
call fcn.00803d5e
add esp, 0x10
cmp eax, 2
je 0x65ab3f
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x68]
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x1c], eax
jmp 0x65ac12
lea ecx, [esp + 0x1c]
push 0x442f1c
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65ab9a
mov edx, dword [esp + 0x18]
lea esi, [ebp + 0x24]
push esi
lea edi, [ebp + 0x20]
push edi
push 0x444914
push edx
call fcn.00803d5e
add esp, 0x10
cmp eax, 2
jne 0x65ac0d
mov esi, dword [esi]
mov edi, dword [edi]
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], esi
jmp 0x65ac12
lea eax, [esp + 0x1c]
push 0x444750
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65ad15
mov ecx, dword [esp + 0x4c]
cmp dword [ecx], 5
mov eax, dword [esp + 0x18]
jge 0x65abf2
lea edx, [esp + 0x20]
push edx
push 0x41dc20
push eax
mov dword [esp + 0x2c], 0x64
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
je 0x65abe6
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x30], eax
jmp 0x65ac12
lea ecx, [ebp + 0x34]
push ecx
lea edx, [ebp + 0x30]
push edx
push 0x444900
push eax
call fcn.00803d5e
add esp, 0x10
cmp eax, 2
je 0x65ac12
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x178], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65ac3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x50]
mov bl, byte [esp + 0x17]
inc esi
mov dword [esp + 0x50], esi
test bl, bl
je 0x65a87f
mov eax, dword [esp + 0x18]
test bl, bl
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x178], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65ac7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xdc]
add eax, 0xfffffff0
mov byte [esp + 0x178], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65aca7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x178], 0
call fcn.007e4df4
mov eax, dword [esp + 0x180]
add eax, 0xfffffff0
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65ace9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0080262b
add esp, 0x168
ret 8
lea ecx, [esp + 0x1c]
push 0x443000
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65ad49
mov eax, dword [esp + 0x18]
lea edx, [ebp + 0x38]
push edx
push 0x403a48
push eax
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jmp 0x65ac0b
lea ecx, [esp + 0x1c]
push 0x444728
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65ae80
lea ecx, [esp + 0x18]
call fcn.004b1130
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x4448f8
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65ad99
sub eax, ecx
sar eax, 1
jns 0x65ae74
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x427a2c
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65adc2
sub eax, ecx
sar eax, 1
jns 0x65ae74
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x4448f0
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65adeb
sub eax, ecx
sar eax, 1
jns 0x65ae68
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x40dcec
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65ae10
sub eax, ecx
sar eax, 1
jns 0x65ae68
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x40dc58
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65ae35
sub eax, ecx
sar eax, 1
jns 0x65ae60
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x405084
push ecx
call fcn.0080292f
add esp, 8
cmp eax, esi
je 0x65ac0d
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x65ac0d
mov dword [ebp + 0x3c], esi
jmp 0x65ac12
mov dword [ebp + 0x3c], 1
jmp 0x65ac12
mov dword [ebp + 0x3c], 2
jmp 0x65ac12
lea edx, [esp + 0x1c]
push 0x4448d8
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65aead
mov edx, dword [esp + 0x18]
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0x40]
push ecx
push 0x444914
push edx
jmp 0x65ac00
lea eax, [esp + 0x1c]
push 0x44471c
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b0a7
lea ecx, [esp + 0x18]
call fcn.004b1130
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], esi
call fcn.005345e0
mov ebx, 2
mov byte [esp + 0x178], 8
lea edi, [ebx - 1]
lea ecx, [ecx]
lea ecx, [esp + 0x20]
push ecx
push 0x40d538
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x24]
call fcn.004b65f0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 9
call fcn.004aa540
lea ecx, [esp + 0x5c]
mov byte [esp + 0x178], 8
call fcn.004a8c20
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x65b099
test esi, esi
jne 0x65afab
lea ecx, [esp + 0x24]
push 0x4448f0
push ecx
call fcn.004afd20
add esp, 8
test al, al
jne 0x65afa2
lea edx, [esp + 0x24]
push 0x40dcec
push edx
call fcn.004afd20
add esp, 8
test al, al
jne 0x65afa2
lea eax, [esp + 0x24]
push 0x40dc58
push eax
call fcn.004afd20
add esp, 8
test al, al
jne 0x65af99
lea ecx, [esp + 0x24]
push 0x405084
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b094
mov byte [ebp + 0x48], 0
jmp 0x65b07b
mov byte [ebp + 0x48], 1
jmp 0x65b07b
cmp esi, edi
jne 0x65b024
lea edx, [esp + 0x24]
push 0x4448d0
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65afcc
xor esi, esi
jmp 0x65b07b
lea eax, [esp + 0x24]
push 0x4448c4
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65afee
mov dword [ebp + 0x4c], 0
jmp 0x65b07b
lea ecx, [esp + 0x24]
push 0x4448b4
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b009
mov dword [ebp + 0x4c], edi
jmp 0x65b07b
lea edx, [esp + 0x24]
push 0x4448a8
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b094
mov dword [ebp + 0x4c], ebx
jmp 0x65b07b
cmp esi, ebx
jne 0x65b07b
lea eax, [esp + 0x24]
push 0x4448a0
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b047
mov dword [ebp + 0x50], 0
jmp 0x65b07b
lea ecx, [esp + 0x24]
push 0x4448b4
push ecx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b062
mov dword [ebp + 0x50], edi
jmp 0x65b07b
lea edx, [esp + 0x24]
push 0x444890
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b094
mov dword [ebp + 0x50], ebx
add esi, edi
cmp esi, 3
jl 0x65aef0
lea ecx, [esp + 0x24]
call fcn.004a8c20
jmp 0x65ac12
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x24]
call fcn.004a8c20
jmp 0x65ac12
lea eax, [esp + 0x1c]
push 0x4446d8
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b19a
mov eax, dword [esp + 0x18]
xor bl, bl
cmp dword [eax - 0xc], esi
jl 0x65ba15
cmp word [eax], 0x2d
jne 0x65b0d8
mov bl, 1
push 0x444888
lea ecx, [esp + 0x1c]
call fcn.00535c60
lea ecx, [esp + 0x78]
push ecx
push 2
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0xa4]
push eax
push 2
mov ecx, edx
push ecx
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x34]
push 2
mov eax, ecx
push eax
lea ecx, [esp + 0x64]
push ecx
push 0x40d3dc
push edx
call fcn.00803d5e
add esp, 0x30
cmp eax, 1
jne 0x65b140
xor eax, eax
test bl, bl
sete al
lea eax, [eax + eax - 1]
imul eax, dword [esp + 0x40]
mov dword [ebp + 0x54], eax
jmp 0x65ac12
cmp eax, 7
jne 0x65b188
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x98]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x78]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
mov dword [ebp + 0x54], eax
jmp 0x65ac12
mov eax, 1
mov byte [esp + 0x17], 1
mov dword [ebp + 0x54], eax
jmp 0x65ac12
lea edx, [esp + 0x1c]
push 0x4446c0
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b26d
lea ecx, [esp + 0x18]
call fcn.004b1130
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x4448f0
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b1e6
sub eax, ecx
sar eax, 1
jns 0x65b264
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x40dcec
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b20b
sub eax, ecx
sar eax, 1
jns 0x65b264
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x40dc58
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b230
sub eax, ecx
sar eax, 1
jns 0x65b25b
cmp dword [ecx - 0xc], esi
jl 0x65ac0d
push 0x405084
push ecx
call fcn.0080292f
add esp, 8
cmp eax, esi
je 0x65ac0d
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x65ac0d
mov byte [ebp + 0x58], 0
jmp 0x65ac12
mov byte [ebp + 0x58], 1
jmp 0x65ac12
lea eax, [esp + 0x1c]
push 0x444878
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b2a4
mov edx, dword [esp + 0x18]
lea ecx, [ebp + 0x140]
push ecx
push 0x403a48
push edx
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jmp 0x65ac0b
lea eax, [esp + 0x1c]
push 0x4446b0
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b32c
lea ecx, [ebp + 0x9c]
push ecx
lea edx, [ebp + 0x98]
push edx
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp + 0x90]
push ecx
lea edx, [ebp + 0x8c]
push edx
lea eax, [ebp + 0x88]
push eax
lea ecx, [ebp + 0x84]
push ecx
lea edx, [ebp + 0x80]
push edx
lea eax, [ebp + 0x7c]
push eax
lea ecx, [ebp + 0x78]
push ecx
lea edx, [ebp + 0x74]
push edx
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x6c]
push ecx
lea edx, [ebp + 0x68]
push edx
mov edx, dword [esp + 0x50]
lea eax, [ebp + 0x64]
push eax
lea ecx, [ebp + 0x60]
push ecx
push 0x444818
push edx
call fcn.00803d5e
add esp, 0x48
cmp eax, 0x10
jmp 0x65ac0b
lea eax, [esp + 0x1c]
push 0x444694
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b569
lea ecx, [esp + 0x18]
call fcn.004b1130
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], esi
jl 0x65b3db
push 0x4448f0
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b378
sub eax, ecx
sar eax, 1
je 0x65b3e8
cmp dword [ecx - 0xc], esi
jl 0x65b3db
push 0x40dcec
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b399
sub eax, ecx
sar eax, 1
je 0x65b3e8
cmp dword [ecx - 0xc], esi
jl 0x65b3db
push 0x40dc58
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b3ba
sub eax, ecx
sar eax, 1
je 0x65b3e2
cmp dword [ecx - 0xc], esi
jl 0x65b3db
push 0x405084
push ecx
call fcn.0080292f
mov ecx, dword [esp + 0x20]
add esp, 8
cmp eax, esi
je 0x65b3db
sub eax, ecx
sar eax, 1
je 0x65b3e2
mov byte [esp + 0x17], 1
jmp 0x65b3ec
mov byte [ebp + 0x59], 0
jmp 0x65b3ec
mov byte [ebp + 0x59], 1
cmp dword [ecx - 0xc], esi
jl 0x65b40b
push 0x444804
push ecx
call fcn.0080292f
add esp, 8
cmp eax, esi
je 0x65b40b
sub eax, dword [esp + 0x18]
sar eax, 1
jns 0x65b426
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17], 1
mov byte [esp + 0x178], 3
call fcn.004a8c20
jmp 0x65ac3a
add eax, 6
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x20]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xa
call fcn.004aa540
lea ecx, [esp + 0xa0]
mov byte [esp + 0x178], 6
call fcn.004a8c20
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
push 0x409c4c
push eax
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jne 0x65b40b
mov eax, dword [esp + 0x3c]
mov ecx, eax
sar ecx, 5
mov edx, eax
and ecx, 0x80
and edx, 0x100
or ecx, edx
mov edx, eax
and eax, 1
sar ecx, 5
add eax, eax
and edx, 0x10
or ecx, edx
add eax, eax
add eax, eax
sar ecx, 2
or ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
cmp dword [eax - 0xc], esi
jl 0x65b40b
push 0x4447f4
push eax
call fcn.0080292f
add esp, 8
cmp eax, esi
je 0x65b40b
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x65b40b
add eax, 7
push eax
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x20]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xb
call fcn.004aa540
lea ecx, [esp + 0x80]
call fcn.004a8c20
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x120]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x120]
push ecx
push 0x4447dc
push edx
call fcn.00803d5e
add esp, 0x18
cmp eax, 4
jne 0x65b40b
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x118]
push ecx
lea ecx, [ebp + 0x18]
call fcn.00652da0
jmp 0x65ac12
lea edx, [esp + 0x1c]
push 0x4447d4
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b6c8
lea ecx, [esp + 0x18]
call fcn.004b1130
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
cmp ecx, esi
jl 0x65ba15
movzx ebx, word [eax]
cmp ecx, 1
jl 0x65ba15
movzx edx, word [eax + 2]
movzx esi, bl
movzx edx, dl
shl esi, 8
or esi, edx
test ecx, ecx
js 0x65b40b
push 0x4447c4
push eax
call fcn.0080292f
add esp, 8
test eax, eax
je 0x65b40b
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x65b40b
add eax, 6
push eax
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x20]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xc
call fcn.004aa540
lea ecx, [esp + 0xa8]
mov byte [esp + 0x178], 6
call fcn.004a8c20
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
push 0x403a48
push edx
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jne 0x65b40b
mov eax, dword [esp + 0x28]
cmp eax, 0x1f
ja 0x65b40b
cmp dword [ebp + 0x140], 0
jge 0x65b657
mov dword [ebp + 0x140], eax
lea ecx, [eax*8]
sub ecx, eax
push esi
mov dword [ebp + ecx*4 + 0x144], esi
call fcn.00652b50
mov edx, dword [eax*8 + 0x8c4ca4]
mov eax, dword [esp + 0x2c]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [ebp + ecx*4 + 0x148]
call fcn.004b10a0
push esi
call fcn.00652b50
mov edx, dword [eax*8 + 0x8c4ca4]
mov eax, dword [esp + 0x2c]
lea ecx, [eax*8]
add esp, 4
sub ecx, eax
push edx
lea ecx, [ebp + ecx*4 + 0x14c]
call fcn.004b10a0
mov dword [esp + 0x2c], 0
jmp 0x65ac12
cmp dword [esp + 0x28], esi
jl 0x65ac0d
lea edx, [esp + 0x1c]
push 0x4447bc
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65b70b
mov eax, dword [esp + 0x28]
lea ecx, [eax*8]
sub ecx, eax
lea edx, [esp + 0x18]
lea ecx, [ebp + ecx*4 + 0x14c]
push edx
call fcn.004aa540
jmp 0x65ac12
cmp dword [esp + 0x28], esi
jl 0x65ac0d
lea eax, [esp + 0x1c]
push 0x4447b0
push eax
call fcn.004afd20
add esp, 8
test al, al
je 0x65b7e1
mov eax, dword [esp + 0x18]
xor bl, bl
cmp dword [eax - 0xc], esi
jl 0x65ba15
cmp word [eax], 0x2d
jne 0x65b746
mov bl, 1
push 0x444888
lea ecx, [esp + 0x1c]
call fcn.00535c60
lea ecx, [esp + 0x64]
push ecx
push 2
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
push eax
push 2
mov ecx, edx
push ecx
lea edx, [esp + 0xbc]
push edx
mov edx, dword [esp + 0x34]
push 2
mov eax, ecx
push eax
lea ecx, [esp + 0xac]
push ecx
push 0x40d3dc
push edx
call fcn.00803d5e
add esp, 0x30
cmp eax, 7
jne 0x65b40b
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0xa4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x60]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x64]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add dword [esp + 0x2c], eax
jmp 0x65ac12
cmp dword [esp + 0x28], esi
jl 0x65ac0d
lea edx, [esp + 0x1c]
push 0x44479c
push edx
call fcn.004afd20
add esp, 8
test al, al
je 0x65ac0d
mov al, byte [esp + 0x48]
mov cl, byte [esp + 0x44]
mov edx, dword [esp + 0x54]
mov byte [esp + 0xfd], al
mov eax, dword [esp + 0x58]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0xfe], cl
mov dword [esp + 0x104], edx
mov byte [esp + 0x10c], 1
xor bl, bl
cmp dword [eax - 0xc], esi
jl 0x65ba15
cmp word [eax], 0x2d
jne 0x65b850
mov bl, 1
push 0x444888
lea ecx, [esp + 0x1c]
call fcn.00535c60
lea ecx, [esp + 0x84]
push ecx
push 2
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x88]
push eax
push 2
mov ecx, edx
push ecx
lea edx, [esp + 0x8c]
push edx
mov edx, dword [esp + 0x34]
push 2
mov eax, ecx
push eax
lea ecx, [esp + 0x90]
push ecx
push 0x40d3dc
push edx
call fcn.00803d5e
add esp, 0x30
cmp eax, 7
jne 0x65b40b
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x7c]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
imul eax, eax, 0x3e8
add eax, dword [esp + 0x84]
mov esi, dword [esp + 0x2c]
xor ecx, ecx
test bl, bl
sete cl
lea ecx, [ecx + ecx - 1]
imul eax, ecx
add eax, esi
cdq
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xf0], edx
cmp dword [eax - 0xc], 0
jl 0x65b40b
push 0x444788
push eax
call fcn.0080292f
add esp, 8
test eax, eax
je 0x65b40b
sub eax, dword [esp + 0x18]
sar eax, 1
js 0x65b40b
add eax, 8
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x20]
call fcn.004aa4c0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 0xd
call fcn.004aa540
lea ecx, [esp + 0x8c]
mov byte [esp + 0x178], 6
call fcn.004a8c20
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xe4]
push eax
push 0x44477c
push ecx
call fcn.00803d5e
add esp, 0xc
cmp eax, 1
jne 0x65b40b
test esi, esi
jns 0x65b9ef
mov eax, dword [esp + 0x28]
lea edx, [eax*8]
sub edx, eax
mov ecx, dword [ebp + edx*4 + 0x154]
test ecx, ecx
je 0x65b9f3
dec ecx
push ecx
add eax, 0xc
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ebp + ecx*4]
call fcn.00558320
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp dword [esp + 0xf0], eax
jg 0x65b9ef
mov edx, dword [esp + 0xec]
jl 0x65b9d7
cmp edx, ecx
jae 0x65b9ef
mov edi, ecx
sub edi, edx
add esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x28]
add eax, 0xc
lea edx, [eax*8]
lea ecx, [esp + 0xe4]
sub edx, eax
push ecx
lea ecx, [ebp + edx*4]
call fcn.00654530
jmp 0x65ac12
push 0x80070057
call fcn.004a8210
int3