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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x70]
cmp eax, dword [ecx + 8]
jbe 0x65847cec
sub esp, 0xf0
mov ebp, dword [esp + 0xf4]
test byte [ebp], al
mov esi, dword [esp + 0x100]
mov eax, ebp
mov ebp, dword [esp + 0x104]
lea edx, [ebp + esi]
cmp edx, 0x10000
ja 0x65847ce1
mov ecx, ebp
mov ebp, dword [esp + 0xf8]
test byte [ebp], al
lea ebx, [ecx + esi - 0x20000]
neg ebx
mov ecx, ebx
neg ebx
mov edi, edx
shl edx, 1
sar ebx, 0x1f
and edx, ebx
mov ebx, esi
lea esi, [ebp + edx]
cmp ecx, edi
jb 0x65847cd8
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edx
mov dword [esp + 0xa8], esi
mov ecx, ebx
mov ebx, dword [0x65a344b0]
test ebx, ebx
seta bl
mov esi, dword [0x65a344b4]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
xchg ebp, ebx
seta bl
xchg ebp, ebx
and esi, ebx
or esi, ebp
xchg esi, eax
test al, al
xchg esi, eax
jne 0x6584695c
xor ebx, ebx
xor ebp, ebp
jmp 0x65846982
call fcn.6585f960
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov ebx, ecx
mov ebp, eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x100]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x88]
jmp 0x658469d4
lea ebp, [esi + 1]
mov esi, dword [esp + 0xf4]
mov eax, esi
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
cmp ebp, edi
jge 0x65846ad8
jae 0x65847ccf
lea ebx, [eax + ebp*8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x65846a9a
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0xa4], ebx
mov ebp, dword [esp + 0x28]
inc ebp
mov dword [esp + 0x54], ebp
mov esi, dword [ebx + 0x94]
mov dword [esp + 0x24], esi
mov ebx, dword [ebx + 0x98]
shl esi, 0x11
mov ebp, dword [esp + 0x24]
xor esi, ebp
mov ebp, ebx
xor ebx, esi
shr esi, 7
xor esi, ebx
mov ebx, ebp
shr ebp, 0x10
xor ebp, esi
mov dword [esp + 0x24], ebp
lea esi, [ebx + ebp]
mov eax, esi
mov ebp, dword [esp + 0x54]
mov esi, edx
mul ebp
mov eax, esi
mov esi, dword [esp + 0xa4]
mov dword [esi + 0x94], ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x98], ebx
cmp edx, edi
jae 0x65847cc6
mov ebx, dword [esp + 0xf8]
movzx esi, word [ebx + edx*2]
mov ebp, dword [esp + 0x28]
cmp ebp, edi
jae 0x65847cbd
mov word [ebx + ebp*2], si
mov esi, dword [esp + 0x40]
mov word [ebx + edx*2], si
mov edx, dword [esp + 0x54]
jmp 0x658469ad
lea ebx, [eax + ebp*8 + 4]
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x65846ab0
mov dword [ebx], 0
jmp 0x65846ac4
mov esi, edi
mov edi, ebx
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0xf4]
mov edi, esi
mov eax, edx
mov ebx, dword [esp + 0xf8]
mov esi, ebp
mov edx, dword [esp + 0x28]
jmp 0x658469ad
mov ebp, dword [esp + 0x28]
cmp ebp, edi
ja 0x65847cb4
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
jmp 0x65846b1d
mov ecx, dword [esp + 0xa8]
mov word [ecx + ebx*2], di
inc edx
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x100]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x3c]
cmp ebx, ebp
jge 0x65846b64
jae 0x65847cab
movzx edx, word [esi + ebx*2]
cmp edx, edi
jae 0x65847ca2
lea edx, [eax + edx*8]
mov edx, dword [edx]
mov dword [esp + 0xc0], edx
jmp 0x65847c35
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0xf8]
mov edx, dword [esp + 0x3c]
movzx edi, word [esi + edx*2]
cmp ebx, ebp
jb 0x65846afa
jmp 0x65847c7e
lea ebx, [ebp - 1]
jmp 0x65846b89
movzx edi, word [esp + 0x1a]
mov word [ebp + ebx*2], di
lea ebx, [esi - 1]
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x28]
test ebx, ebx
jl 0x65846c01
cmp ebx, ebp
jae 0x65847c0b
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0xa8]
movzx ebx, word [ebp + ebx*2]
mov word [esp + 0x1a], bx
movzx ebx, bx
cmp ebx, edi
jae 0x65847c02
lea ebx, [eax + ebx*8]
mov ebx, dword [ebx]
mov dword [esp + 0xbc], ebx
movzx edx, word [esi + edx]
mov esi, dword [esp + 0x38]
mov word [ebp + esi*2], dx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
jmp 0x65847af3
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
cmp ebx, edx
jb 0x65846b69
jmp 0x65847bba
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edi
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edi
call fcn.658466d0
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xf8]
xor esi, esi
jmp 0x65846c69
mov eax, dword [esp + 0x58]
lea esi, [eax + 1]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0xf8]
cmp esi, ebx
jge 0x65847032
movzx edi, word [ebp + esi*2]
cmp edi, edx
jae 0x65847abe
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
lea ebp, [ecx + edi*8]
mov ebp, dword [ebp]
mov dword [esp + 0xb8], ebp
cmp eax, edi
jle 0x65846ccd
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x65847aac
lea eax, [ebp + 0x20]
mov dword [esp], eax
call fcn.65806270
mov eax, dword [esp + 4]
test eax, eax
jne 0x65846d9b
mov edx, dword [esp + 0xb8]
mov ebx, dword [edx]
cmp dword [edx + 4], ebx
jbe 0x65846c45
jmp 0x65846d08
test byte [ebp], al
lea eax, [ebp + 0x28]
mov dword [esp], eax
call fcn.65806270
mov eax, dword [esp + 4]
test eax, eax
jne 0x65846f7d
mov edx, dword [esp + 0xb8]
mov ebx, dword [edx]
test ebx, ebx
ja 0x65846ebf
mov ebx, dword [edx + 0x10]
test ebx, ebx
je 0x65846c45
jmp 0x65846e4d
mov eax, dword [edx + 0x14]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0xf4]
lea ebp, [ebx + ecx*8 + 4]
mov ebp, dword [ebp]
movzx esi, word [edx + 0xc]
imul esi, dword [edx + 0x18]
add esi, dword [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.6580f9c0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x18]
inc ecx
mov dword [eax + 0x18], ecx
cmp dword [eax + 4], ecx
jne 0x65846d52
mov dword [eax + 0x18], 0
inc dword [eax]
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.65846760
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov eax, dword [esp + 0x54]
xor ebx, ebx
jmp 0x658470bd
mov dword [esp + 0x98], eax
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.6585fce9
lea ecx, [0x65847d00]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], edx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xe4], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0x54]
lea ecx, [ecx + edx*8 + 4]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.658055d0
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov eax, dword [esp + 0x54]
xor ebx, ebx
jmp 0x658470bd
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
call fcn.65846760
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xf4]
lea ecx, [ecx + eax*8 + 4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x65846eae
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.6580fba0
mov eax, dword [esp + 0x54]
mov ecx, 0xffffffff
mov edx, 0xffffffff
xor ebx, ebx
jmp 0x658470bd
nop
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xf4]
lea ebx, [ecx + eax*8 + 4]
mov ebx, dword [ebx]
movzx ebp, word [edx + 0xc]
imul ebp, dword [edx + 0x1c]
add ebp, dword [edx + 8]
test ebx, ebx
je 0x65846f08
mov dword [esp + 0x9c], ebp
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.6580f9c0
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x9c]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.6580fba0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 0x1c]
inc ecx
mov dword [eax + 0x1c], ecx
cmp dword [eax + 4], ecx
jne 0x65846f31
mov dword [eax + 0x1c], 0
dec dword [eax]
mov eax, dword [esp + 0xf4]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.65846760
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov eax, dword [esp + 0x54]
mov ebx, 1
jmp 0x658470bd
mov dword [esp + 0x98], eax
lea edi, [esp + 0xd4]
xor eax, eax
call fcn.6585fce9
lea ecx, [0x65847d50]
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0xd8], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], edx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xe4], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], edx
mov edx, dword [esp + 0x54]
lea ecx, [ecx + edx*8 + 4]
mov ecx, dword [ecx]
mov ebx, dword [esp + 0xb8]
mov dword [esp], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 2
call fcn.65806060
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov eax, dword [esp + 0x54]
mov ebx, 1
jmp 0x658470bd
movzx ebp, byte [esp + 0x108]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x65847089
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [ebp + 0xc8]
test esi, esi
jne 0x65847a96
mov dword [esp + 0xb0], ebp
lea esi, [ebp + 0xc8]
mov dword [esp + 0xd0], esi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
jmp 0x65847152
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edx
call fcn.65846760
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov eax, 0xffffffff
xor ebx, ebx
test edx, edx
xchg ebp, ebx
seta bl
xchg ebp, ebx
test ecx, ecx
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setg bl
xchg edi, ebx
and esi, ebp
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
je 0x65847111
mov byte [esp + 0x18], bl
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
sub edx, eax
mov eax, dword [esp + 0x20]
sbb ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 1
call fcn.6582d830
mov eax, dword [esp + 0x44]
movzx ebx, byte [esp + 0x18]
mov dword [esp + 0x10c], eax
mov byte [esp + 0x110], bl
add esp, 0xf0
ret
mov ebx, dword [esp + 0x58]
inc ebx
lea esi, [edi + 0x2c]
mov ebp, dword [esp + 0x5c]
mov edi, dword [esp + 0x28]
mov eax, ecx
mov ecx, edx
mov edx, ebp
mov ebp, dword [esp + 0xb0]
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x58]
cmp esi, ebx
jge 0x6584742a
movzx edi, word [edi + esi*2]
cmp edi, edx
jae 0x65847a8d
mov dword [esp + 0x54], edi
lea eax, [ecx + edi*8]
mov eax, dword [eax]
mov dword [esp + 0xb8], eax
call fcn.65838990
mov edi, dword [esp]
test byte [edi], al
mov eax, dword [esp + 0x20]
test eax, eax
setne cl
mov edx, dword [esp + 0x1c]
test edx, edx
setne bl
mov ebp, dword [0x65a345b0]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0xf4]
lea eax, [edx + esi*8 + 4]
or ecx, ebx
test ebp, ebp
jne 0x658471c3
mov ebx, dword [esp + 0xb0]
mov dword [edi], ebx
jmp 0x658471da
mov ebx, eax
mov eax, dword [esp + 0xb0]
call fcn.6585fb10
mov eax, ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x94], edi
mov byte [edi + 0x24], 1
mov ebp, dword [0x65a345b0]
mov eax, dword [eax]
test ebp, ebp
jne 0x658471f6
mov dword [edi + 0xc], eax
jmp 0x65847207
lea ebp, [edi + 0xc]
mov edi, ebp
call fcn.6585fb10
mov edi, dword [esp + 0x94]
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
test cl, cl
je 0x65847227
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
mov ebp, dword [0x65a345b0]
test ebp, ebp
jne 0x65847248
mov ebp, dword [esp + 0xb8]
mov dword [edi + 0x34], ebp
mov eax, ebx
mov ebx, dword [esp + 0xa0]
mov dword [ebx], edi
jmp 0x6584726f
lea ebp, [edi + 0x34]
mov eax, dword [esp + 0xb8]
mov ecx, edi
mov edi, ebp
call fcn.6585fb10
mov edi, dword [esp + 0xa0]
mov ebp, eax
mov eax, ecx
call fcn.6585fb10
mov eax, ebx
mov edi, ecx
mov ebx, dword [esp + 0x100]
cmp ebx, esi
jle 0x65847354
test byte [ebp], al
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x65847294
mov dword [edi + 4], 0
jmp 0x658472ab
lea esi, [edi + 4]
mov ecx, edi
mov edi, esi
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0xb0]
mov edi, ecx
lea esi, [ebp + 0x2c]
mov ecx, ebx
mov ebx, dword [ebp + 0x2c]
test ebx, ebx
je 0x65847308
mov dword [esp + 0xcc], esi
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x658472d6
mov dword [edi + 8], ebx
mov dword [ebx + 4], edi
mov dword [ebp + 0x2c], edi
jmp 0x65847126
lea ebp, [edi + 8]
mov esi, edi
mov edi, ebp
mov eax, ebx
call fcn.6585fb10
lea edi, [eax + 4]
mov eax, esi
call fcn.6585fb10
mov edi, dword [esp + 0xcc]
call fcn.6585fb10
mov eax, dword [esp + 0xb0]
mov edi, esi
jmp 0x65847126
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x65847324
mov dword [edi + 8], 0
mov dword [ebp + 0x28], edi
mov dword [ebp + 0x2c], edi
jmp 0x65847126
lea ebx, [edi + 8]
mov edi, ebx
xor eax, eax
call fcn.6585fb10
lea edi, [ebp + 0x28]
mov eax, dword [esp + 0x94]
call fcn.6585fb10
mov edi, esi
call fcn.6585fb10
mov edi, eax
mov eax, dword [esp + 0xb0]
jmp 0x65847126
test byte [ebp], al
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x6584736a
mov dword [edi + 4], 0
jmp 0x65847381
lea esi, [edi + 4]
mov ecx, edi
mov edi, esi
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0xb0]
mov edi, ecx
lea esi, [ebp + 0x24]
mov ecx, ebx
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x658473de
mov dword [esp + 0xcc], esi
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x658473ac
mov dword [edi + 8], ebx
mov dword [ebx + 4], edi
mov dword [ebp + 0x24], edi
jmp 0x65847126
lea ebp, [edi + 8]
mov esi, edi
mov edi, ebp
mov eax, ebx
call fcn.6585fb10
lea edi, [eax + 4]
mov eax, esi
call fcn.6585fb10
mov edi, dword [esp + 0xcc]
call fcn.6585fb10
mov eax, dword [esp + 0xb0]
mov edi, esi
jmp 0x65847126
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x658473fa
mov dword [edi + 8], 0
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
jmp 0x65847126
lea ebx, [edi + 8]
mov edi, ebx
xor eax, eax
call fcn.6585fb10
lea edi, [ebp + 0x20]
mov eax, dword [esp + 0x94]
call fcn.6585fb10
mov edi, esi
call fcn.6585fb10
mov edi, eax
mov eax, dword [esp + 0xb0]
jmp 0x65847126
test byte [ebp], al
lea esi, [ebp + 0x44]
mov dword [esp + 0xc8], esi
mov ebx, dword [0x65a345b0]
test ebx, ebx
jne 0x6584744a
mov dword [ebp + 0x44], 0
jmp 0x65847453
mov edi, esi
xor eax, eax
call fcn.6585fb10
lea eax, [ebp + 0x6d]
mov dword [esp], eax
mov byte [esp + 4], 1
call fcn.65802ae0
lea eax, [0x65980ac0]
mov dword [esp], eax
mov dword [esp + 4], 0
mov word [esp + 8], 0x1809
mov dword [esp + 0xc], 1
call fcn.658387c0
mov eax, dword [esp + 0xb0]
mov byte [eax + 0x6c], 0
mov ecx, dword [esp + 0xf4]
mov dword [esp], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
call fcn.658466d0
mov eax, dword [esp + 0xb0]
mov dword [eax + 0xe0], 0
mov ecx, dword [eax + 0x44]
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x658474ec
mov dword [eax + 0x44], 0
jmp 0x658474fe
mov edi, dword [esp + 0xc8]
mov edx, eax
xor eax, eax
call fcn.6585fb10
mov eax, edx
mov edx, dword [eax + 0xc8]
mov ebx, edx
jmp 0x6584750b
mov edx, dword [edx + 0x2c]
test edx, edx
je 0x65847547
mov byte [edx + 0x24], 0
mov ebp, dword [0x65a345b0]
test ebp, ebp
jne 0x6584752d
mov dword [edx + 0xc], 0
mov dword [edx + 0x34], 0
jmp 0x65847508
lea edi, [edx + 0xc]
mov ebp, eax
xor eax, eax
call fcn.6585fb10
lea edi, [edx + 0x34]
xor eax, eax
call fcn.6585fb10
mov eax, ebp
jmp 0x65847508
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x6584755d
mov dword [eax + 0xc8], 0
jmp 0x6584756b
mov edi, dword [esp + 0xd0]
xor eax, eax
call fcn.6585fb10
mov dword [esp + 0xc4], ecx
mov ebp, dword [esp + 0xf4]
mov esi, dword [esp + 0x100]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0xb4], eax
mov eax, 0xffffffff
mov dword [esp + 0x44], eax
xor eax, eax
mov byte [esp + 0x19], al
mov eax, 0xffffffff
mov dword [esp + 0x4c], eax
mov eax, 0xffffffff
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
jmp 0x6584761b
mov dword [esp], ecx
call fcn.65838c90
mov eax, dword [esp + 0x58]
inc eax
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0x100]
mov ebx, dword [esp + 0xc4]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xa8]
mov ecx, ebx
mov edx, esi
mov ebp, dword [esp + 0xf4]
mov esi, dword [esp + 0x100]
mov dword [esp + 0x58], eax
mov ebx, dword [esp + 0x90]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
cmp esi, edx
jge 0x658479d4
movzx edx, word [edi + esi*2]
cmp edx, eax
jae 0x65847a84
mov dword [esp + 0x90], ebx
lea esi, [ebp + edx*8]
cmp ebx, ecx
jne 0x6584769a
mov dword [esp + 0xac], esi
mov dword [esp + 0x54], edx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x50], ecx
test ecx, ecx
xchg ebp, ebx
setg bl
xchg ebp, ebx
mov edx, dword [ebx + 0x18]
test edx, edx
xchg esi, ebx
seta bl
xchg esi, ebx
test ecx, ecx
sete cl
movzx ebx, byte [ebx + 0x25]
and ecx, esi
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x65847682
mov ecx, dword [esp + 0x50]
jmp 0x6584768a
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0xac]
mov esi, dword [esp + 0x54]
jmp 0x65847985
lea esi, [ebp + edx*8]
mov esi, dword [esi]
mov ecx, dword [esp + 0x100]
cmp ecx, edx
jle 0x65847817
test byte [esi], al
mov edx, dword [ebx + 8]
lea ecx, [ebx + 4]
mov ebp, dword [ebx + 4]
test edx, edx
je 0x6584777d
mov dword [esp + 0xd0], ecx
lea ecx, [ebx + 8]
test ebp, ebp
je 0x6584772e
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x658476f3
mov dword [edx + 4], ebp
mov dword [ebp + 8], edx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x6584796d
lea esi, [edx + 4]
mov edi, esi
mov eax, ebp
call fcn.6585fb10
lea edi, [eax + 8]
mov eax, edx
call fcn.6585fb10
mov edi, dword [esp + 0xd0]
xor eax, eax
call fcn.6585fb10
mov edi, ecx
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
mov ebp, dword [0x65a345b0]
test ebp, ebp
jne 0x6584774e
mov dword [edx + 4], 0
mov dword [esi + 0x2c], edx
mov dword [ebx + 8], 0
jmp 0x6584796d
lea ebp, [edx + 4]
mov edi, ebp
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x2c]
mov eax, edx
call fcn.6585fb10
mov edi, ecx
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
test ebp, ebp
je 0x658477d0
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x658477a1
mov dword [ebp + 8], 0
mov dword [esi + 0x28], ebp
mov dword [ebx + 4], 0
jmp 0x6584796d
lea edx, [ebp + 8]
mov edi, edx
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x28]
mov eax, ebp
call fcn.6585fb10
mov edi, ecx
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
cmp dword [esi + 0x28], ebx
jne 0x6584796d
mov ecx, dword [0x65a345b0]
test ecx, ecx
jne 0x658477f6
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
jmp 0x6584796d
lea ecx, [esi + 0x28]
mov edx, edi
mov edi, ecx
mov ebp, eax
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x2c]
call fcn.6585fb10
mov eax, ebp
mov edi, edx
jmp 0x6584796d
test byte [esi], al
mov edx, dword [ebx + 8]
lea ecx, [ebx + 4]
mov ebp, dword [ebx + 4]
test edx, edx
je 0x658478e5
mov dword [esp + 0xd0], ecx
lea ecx, [ebx + 8]
test ebp, ebp
je 0x65847896
mov esi, dword [0x65a345b0]
test esi, esi
jne 0x6584785b
mov dword [edx + 4], ebp
mov dword [ebp + 8], edx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x6584796d
lea esi, [edx + 4]
mov edi, esi
mov eax, ebp
call fcn.6585fb10
lea edi, [eax + 8]
mov eax, edx
call fcn.6585fb10
mov edi, dword [esp + 0xd0]
xor eax, eax
call fcn.6585fb10
mov edi, ecx
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
mov ebp, dword [0x65a345b0]
test ebp, ebp
jne 0x658478b6
mov dword [edx + 4], 0
mov dword [esi + 0x24], edx
mov dword [ebx + 8], 0
jmp 0x6584796d
lea ebp, [edx + 4]
mov edi, ebp
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x24]
mov eax, edx
call fcn.6585fb10
mov edi, ecx
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
test ebp, ebp
je 0x65847932
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x65847906
mov dword [ebp + 8], 0
mov dword [esi + 0x20], ebp
mov dword [ebx + 4], 0
jmp 0x6584796d
lea edx, [ebp + 8]
mov edi, edx
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x20]
mov eax, ebp
call fcn.6585fb10
mov edi, ecx
xor eax, eax
call fcn.6585fb10
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0xa8]
jmp 0x6584796d
cmp dword [esi + 0x20], ebx
jne 0x6584796d
mov ecx, dword [0x65a345b0]
test ecx, ecx
jne 0x65847951
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jmp 0x6584796d
lea ecx, [esi + 0x20]
mov edx, edi
mov edi, ecx
mov ebp, eax
xor eax, eax
call fcn.6585fb10
lea edi, [esi + 0x24]
call fcn.6585fb10
mov eax, ebp
mov edi, edx
mov ebp, dword [esp + 0xb4]
mov esi, dword [esp + 0x44]
movzx ebx, byte [esp + 0x19]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x19], bl
mov dword [esp + 0x44], esi
mov dword [esp + 0xb4], ebp
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x90], edx
mov edx, dword [0x65a345b0]
test edx, edx
jne 0x658479c3
mov dword [ecx + 0x2c], 0
jmp 0x658475c9
lea edx, [ecx + 0x2c]
mov edi, edx
xor eax, eax
call fcn.6585fb10
jmp 0x658475c9
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x65847a6e
mov ecx, dword [esp + 0x100]
mov ebx, dword [esp + 0x44]
cmp ecx, ebx
jle 0x658479ff
movzx ecx, byte [esp + 0x19]
test cl, cl
je 0x65847a3a
xor ecx, ecx
jmp 0x65847a04
movzx ecx, byte [esp + 0x19]
mov byte [esp + 0x18], cl
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.65846760
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
movzx ebx, byte [esp + 0x18]
jmp 0x658470bd
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.65846760
lea eax, [0x658d5d60]
mov dword [esp], eax
lea eax, [0x6599c798]
mov dword [esp + 4], eax
call fcn.658357c0
lea eax, [0x658e57cd]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.65835ef0
mov ecx, eax
mov eax, edx
call fcn.6585fb90
mov eax, edi
mov ecx, edx
call fcn.6585fb90
lea eax, [0x658e483c]
mov dword [esp], eax
mov dword [esp + 4], 0x11
call fcn.65835ef0
mov eax, edx
mov edx, ebx
mov ebp, ecx
mov edi, dword [esp + 0xa8]
jmp 0x65847a3a
mov eax, edi
mov ecx, edx
call fcn.6585fb90
mov edi, dword [esp + 0xa8]
mov word [edi + ebx*2], si
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0xbc]
mov ebp, edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x30]
shl ebx, 1
lea edi, [ebx + 1]
cmp esi, edi
jle 0x65846bf0
add ebx, 2
cmp esi, ebx
jle 0x65847b80
cmp edx, edi
jbe 0x65847bf9
mov dword [esp + 0x2c], edi
mov esi, dword [esp + 0x30]
lea edi, [ebp + esi*4 + 2]
movzx edi, word [edi]
mov ebp, dword [esp + 0x5c]
cmp edi, ebp
jae 0x65847bf0
lea edi, [eax + edi*8]
mov edi, dword [edi]
cmp edx, ebx
jbe 0x65847be7
mov edx, dword [esp + 0xa8]
lea esi, [edx + esi*4 + 4]
movzx esi, word [esi]
cmp esi, ebp
jae 0x65847bde
lea esi, [eax + esi*8]
mov esi, dword [esi]
cmp esi, edi
jbe 0x65847b6d
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov edi, ebx
jmp 0x65847b80
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0xbc]
cmp edi, edx
jae 0x65847bd5
mov dword [esp + 0x54], edi
movzx esi, word [ebp + edi*2]
movzx edi, si
mov ebp, dword [esp + 0x5c]
cmp edi, ebp
jae 0x65847bcc
lea edi, [eax + edi*8]
mov edi, dword [edi]
cmp edi, ebx
jbe 0x65846be5
mov ebx, dword [esp + 0x30]
cmp ebx, edx
jb 0x65847ac7
jmp 0x65847bc3
mov eax, ebx
mov ecx, edx
call fcn.6585fb90
mov eax, ebx
mov ecx, edx
call fcn.6585fb90
mov eax, edi
mov ecx, ebp
call fcn.6585fb90
mov eax, edi
mov ecx, edx
call fcn.6585fb90
mov eax, esi
mov ecx, ebp
call fcn.6585fb90
mov eax, ebx
mov ecx, edx
call fcn.6585fb90
mov eax, edi
mov ecx, ebp
call fcn.6585fb90
mov eax, edi
mov ecx, edx
call fcn.6585fb90
mov eax, ebx
mov ecx, edi
call fcn.6585fb90
mov eax, ebx
mov ecx, ebp
call fcn.6585fb90
mov ebx, dword [esp + 0xa8]
mov word [ebx + edx*2], si
mov edx, dword [esp + 0xc0]
mov esi, dword [esp + 0x54]
mov esi, dword [esp + 0xf8]
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x65846b53
lea esi, [ebx - 1]
shr esi, 0x1f
lea esi, [ebx + esi - 1]
sar esi, 1
cmp ebp, esi
jbe 0x65847c99
mov dword [esp + 0x34], ebx
mov dword [esp + 0x54], esi
mov ebx, dword [esp + 0xa8]
movzx esi, word [ebx + esi*2]
movzx ebx, si
cmp ebx, edi
jae 0x65847c90
lea ebx, [eax + ebx*8]
mov ebx, dword [ebx]
cmp edx, ebx
jbe 0x65846b48
mov edx, dword [esp + 0x34]
cmp edx, ebp
jb 0x65847c14
jmp 0x65847c87
mov eax, ebx
mov ecx, ebp
call fcn.6585fb90
mov eax, edx
mov ecx, ebp
call fcn.6585fb90
mov eax, ebx
mov ecx, edi
call fcn.6585fb90
mov eax, esi
mov ecx, ebp
call fcn.6585fb90
mov eax, edx
mov ecx, edi
call fcn.6585fb90
mov eax, ebx
mov ecx, ebp
call fcn.6585fb90
mov ecx, ebp
mov edx, edi
call fcn.6585fbd0
mov eax, ebp
mov ecx, edi
call fcn.6585fb90
mov eax, edx
mov ecx, edi
call fcn.6585fba0
mov eax, ebp
mov ecx, edi
call fcn.6585fb90
mov edx, edi
mov ebx, ecx
call fcn.6585fc30
mov ebx, 0x10000
call fcn.6585fc10
nop
call fcn.6585e6e0
jmp fcn.658468a0