Function at 0x65ed80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x23
push 0
push 0
dec ecx
jne 0x65ed88
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x660187
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
cmp byte [eax + 0x438], 0
jne 0x65edbe
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x66013f
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
and eax, 0x8000
cmp eax, 0x8000
sete byte [ebp - 0x13]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
mov edi, eax
lea edx, [ebp - 0x38]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x65edf8
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jne 0x65ee0f
lea edx, [ebp - 0x3c]
mov eax, dword [esi]
call fcn.00663b00
cmp dword [ebp - 0x3c], 0
setne al
jmp 0x65ee11
xor eax, eax
test al, al
je 0x65ee23
mov eax, dword [esi]
cmp byte [eax + 0x2ef], 6
setne al
jmp 0x65ee25
xor eax, eax
test al, al
je 0x65ee39
cmp word [ebx + 4], 8
je 0x65ee39
mov eax, dword [esi]
mov byte [eax + 0x412], 1
cmp word [ebx + 4], 0xd
sete al
and al, byte [ebp - 0x13]
je 0x65ee58
mov word [ebx + 4], 0
mov dword [ebx + 0xc], 1
jmp 0x66013f
mov eax, dword [esi]
mov eax, dword [eax + 0x338]
test eax, eax
je 0x65ee69
sub eax, 4
mov eax, dword [eax]
mov edi, eax
cmp word [ebx + 4], 0xd
jne 0x65ef24
mov word [ebp - 0x12], 0xd
mov eax, dword [esi]
cmp word [eax + 0x252], 0
je 0x65ee9b
lea ecx, [ebp - 0x12]
mov edi, dword [esi]
mov edx, dword [esi]
mov eax, dword [edi + 0x254]
call dword [edi + 0x250]
mov word [ebx + 4], 0
mov eax, dword [esi]
cmp byte [eax + 0x39f], 0
jne 0x66013f
mov eax, dword [esi]
cmp byte [eax + 0x324], 0
jne 0x66013f
mov eax, dword [esi]
mov edi, dword [eax + 0x40]
test edi, edi
je 0x66013f
push 0
push 0xd
push pe_nt_image_headers32
mov eax, edi
call fcn.0054be48
push eax
call sub.user32.dll_PostMessageW
mov dl, 1
mov eax, dword [esi]
call fcn.005fe3a8
test eax, eax
je 0x65ef06
cmp byte [eax + 0x2d0], 0
je 0x65ef06
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp 0x66013f
push 0
push 0xd
push 0x101
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call fcn.0054be48
push eax
call sub.user32.dll_PostMessageW
jmp 0x66013f
cmp word [ebx + 4], 0x1b
jne 0x65ef94
mov eax, dword [esi]
cmp byte [eax + 0x39f], 0
jne 0x65ef94
mov eax, dword [esi]
cmp dword [eax + 0x40], 0
je 0x65ef94
mov dl, 1
mov eax, dword [esi]
call fcn.005fe3a8
test eax, eax
je 0x65ef62
cmp byte [eax + 0x2d0], 0
je 0x65ef62
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp 0x66013f
push 0
push 0x1b
push pe_nt_image_headers32
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call fcn.0054be48
push eax
call sub.user32.dll_PostMessageW
push 0
push 0x1b
push 0x101
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
call fcn.0054be48
push eax
call sub.user32.dll_PostMessageW
cmp word [ebx + 4], 0x1b
jne 0x65efa9
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp 0x66013f
cmp byte [ebp - 0x13], 0
je 0x65efc8
cmp word [ebx + 4], 1
jne 0x65efc8
mov eax, dword [esi]
call fcn.00660c48
mov word [ebx + 4], 0
jmp 0x66013f
cmp byte [ebp - 0x13], 0
je 0x65eff8
movzx eax, word [ebx + 4]
sub ax, 1
je 0x65efea
sub ax, 2
je 0x65efea
sub ax, 0x13
je 0x65efea
sub ax, 2
jne 0x65eff8
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp 0x66013f
cmp word [ebx + 4], 0x2e
jne 0x65f022
mov eax, dword [esi]
cmp byte [eax + 0x2f3], 0
je 0x65f022
mov eax, dword [ebx + 8]
and eax, 0x400000
cmp eax, 0x400000
jne 0x65f022
call fcn.0065dd38
mov word [ebx + 4], ax
cmp word [ebx + 4], 0x2c
jne 0x65f04c
mov eax, dword [esi]
cmp byte [eax + 0x2f3], 0
je 0x65f04c
mov eax, dword [ebx + 8]
and eax, 0x400000
cmp eax, 0x400000
jne 0x65f04c
call fcn.0065dd38
mov word [ebx + 4], ax
cmp word [ebx + 4], 8
jne 0x65f07e
mov eax, dword [esi]
cmp dword [eax + 0x338], 0
je 0x65f07e
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp edi, eax
jl 0x65f07e
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
je 0x66013f
mov eax, dword [esi]
cmp word [eax + 0x332], 0
jle 0x65f0f5
lea edx, [ebp - 0x40]
mov eax, dword [esi]
call fcn.00663b00
mov edx, dword [ebp - 0x40]
mov eax, dword [esi]
call fcn.00663a24
mov edx, dword [esi]
movsx edx, word [edx + 0x332]
cmp eax, edx
jle 0x65f0f5
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65f0f5
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
mov eax, dword [esi]
call fcn.00663938
pop edx
cmp edx, eax
jge 0x65f0f5
cmp word [ebx + 4], 8
je 0x65f0f5
call fcn.0065dd38
cmp ax, word [ebx + 4]
je 0x65f0f5
movzx edx, word [ebx + 4]
mov eax, dword [esi]
call fcn.006639fc
test al, al
je 0x66013f
cmp word [ebx + 4], 8
jne 0x65f1d2
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65f135
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov edx, eax
sub edx, edi
lea eax, [ebp - 8]
mov ecx, 1
call fcn.0040bd48
jmp 0x65f16a
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
sub eax, edi
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x65f151
mov edi, 1
jmp 0x65f154
mov edi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
mov ecx, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.0040bd48
lea edx, [ebp - 0x44]
mov eax, dword [esi]
call fcn.00663b00
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.0040bcc8
jne 0x65f190
mov eax, dword [esi]
call fcn.006653bc
test al, al
jne 0x65f190
xor eax, eax
jmp 0x65f192
mov al, 1
mov byte [ebp - 0x14], al
movzx edx, byte [ebp - 0x14]
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
mov eax, dword [esi]
cmp byte [eax + 0x2ef], 7
jne 0x65f1bb
mov eax, dword [esi]
call fcn.00664074
movzx edx, byte [ebp - 0x14]
mov eax, dword [esi]
call fcn.006653c4
mov eax, dword [esi]
call fcn.0066706c
jmp 0x66013f
cmp byte [ebp - 0x13], 0
je 0x65f1e3
cmp word [ebx + 4], 0xa
je 0x66013f
mov eax, dword [esi]
movzx eax, byte [eax + 0x2ef]
mov edx, eax
dec edx
sub dl, 2
jb 0x65f1f9
sub dl, 4
jne 0x65f20f
mov edx, dword [esi]
cmp byte [edx + 0x344], 0
jne 0x65f20f
cmp word [ebx + 4], 0x2d
je 0x66013f
and eax, 0x7f
cmp eax, 0xc
ja case.default.0x65f21b
jmp dword [eax*4 + 0x65f222]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x65f29f
sub ax, 3
je 0x65f29f
add eax, 0xffffffdd
sub ax, 0xa
jb 0x65f29f
add eax, 0xfffffff9
sub ax, 0x1a
jb 0x65f29f
add eax, 0xfffffffa
sub ax, 0x1a
jae case.default.0x65f21b
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
lea eax, [ebp - 0x48]
movzx edx, word [ebx + 4]
call fcn.0040b94c
mov eax, dword [ebp - 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x408]
mov ecx, 1
call fcn.0040bf10
test eax, eax
jg 0x65f2e6
cmp word [ebx + 4], 8
jne case.default.0x65f21b
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
lea eax, [ebp - 0x4c]
movzx edx, word [ebx + 4]
call fcn.0040b94c
mov eax, dword [ebp - 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x40c]
mov ecx, 1
call fcn.0040bf10
test eax, eax
je 0x65f32d
cmp word [ebx + 4], 8
jne case.default.0x65f21b
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
cmp word [ebx + 4], 0x2d
jne 0x65f4c0
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
mov ebx, eax
lea edx, [ebp - 0x50]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x65f371
sub eax, 4
mov eax, dword [eax]
cmp eax, ebx
jne 0x65f3be
mov eax, dword [esi]
push dword [eax + 0x338]
push 0x6601a4
mov eax, dword [esi]
push dword [eax + 0x33c]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.0040bc18
mov edx, dword [ebp - 0x54]
mov eax, dword [esi]
call fcn.0054295c
mov edx, 1
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov eax, dword [esi]
mov byte [eax + 0x412], 0
jmp 0x66013f
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov dword [ebp - 0xc], eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x6601a4
call fcn.0040bf10
test eax, eax
jle 0x65f45f
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.0040bd48
mov eax, dword [esi]
push dword [eax + 0x338]
push dword [ebp - 8]
mov eax, dword [esi]
push dword [eax + 0x33c]
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.0040bc18
mov edx, dword [ebp - 0x58]
mov eax, dword [esi]
call fcn.0054295c
cmp dword [ebp - 0xc], 0
jle 0x65f442
cmp edi, dword [ebp - 0xc]
jge 0x65f442
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
jmp 0x65f44e
mov edx, edi
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
jmp case.default.0x65f21b
mov eax, dword [esi]
push dword [eax + 0x338]
push 0x6601a4
lea edx, [ebp - 0x60]
mov eax, dword [esi]
call fcn.00663b00
push dword [ebp - 0x60]
mov eax, dword [esi]
push dword [eax + 0x33c]
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.0040bc18
mov edx, dword [ebp - 0x5c]
mov eax, dword [esi]
call fcn.0054295c
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
jmp case.default.0x65f21b
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x65f4e2
sub ax, 3
je 0x65f4e2
sub ax, 0x20
je 0x65f4e2
add eax, 0xfffffffd
sub ax, 0xa
jae 0x65f4eb
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
push 0xa3
call sub.user32.dll_GetKeyState
movsx eax, ax
and eax, 0x8000
cmp eax, 0x8000
je 0x65f521
push 0xa2
call sub.user32.dll_GetKeyState
movsx eax, ax
and eax, 0x8000
cmp eax, 0x8000
jne case.default.0x65f21b
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
movzx eax, word [ebx + 4]
cmp ax, 0xff
ja 0x65f543
movzx eax, ax
bt dword [0x6601a8], eax
jae case.default.0x65f21b
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x65f58f
sub ax, 3
je 0x65f58f
add eax, 0xffffffe1
sub ax, 2
jb 0x65f58f
add eax, 0xfffffffe
sub ax, 0xa
jb 0x65f58f
sub ax, 1
jne case.default.0x65f21b
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
lea edx, [ebp - 0x64]
mov eax, dword [esi]
call fcn.00542908
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 8]
mov ecx, 0x6601d4
call fcn.0040bb90
movzx eax, word [ebx + 4]
add eax, 0xffffffd4
sub ax, 2
jb 0x65f5c5
sub ax, 0xd
jne 0x65f63e
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp edi, eax
jge 0x66013f
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp edi, eax
jge 0x65f604
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov edx, dword [ebp - 8]
movzx eax, word [edx + eax*2 - 2]
call fcn.0065ea60
test al, al
jne 0x66013f
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp edi, eax
jge 0x65f630
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov edx, dword [ebp - 8]
movzx eax, word [edx + eax*2]
call fcn.0065ea60
test al, al
jne 0x66013f
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
jne 0x65f6f2
lea edx, [ebp - 0x68]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x68]
push eax
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0x6c]
call fcn.0040b94c
mov eax, dword [ebp - 0x6c]
mov ecx, 1
pop edx
call fcn.0040bf10
test eax, eax
jg 0x65f699
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jne 0x65f6f2
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jle 0x65f6e4
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
mov ebx, eax
lea edx, [ebp - 0x70]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x65f6cd
sub eax, 4
mov eax, dword [eax]
cmp eax, ebx
jne 0x65f6dd
mov edx, 0x6601e4
mov eax, dword [esi]
call fcn.00663bf0
mov eax, dword [esi]
call fcn.00660f38
mov eax, dword [esi]
mov byte [eax + 0x412], 0
jmp 0x66013f
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x65f726
sub ax, 3
je 0x65f726
sub ax, 0x20
je 0x65f726
add eax, 0xfffffffd
sub ax, 0xa
jb 0x65f726
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
jne case.default.0x65f21b
call fcn.0065dd28
movzx edx, word [ebx + 4]
cmp ax, dx
je 0x65f742
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
jne 0x65f76a
push ebp
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
lea edx, [ebp - 0x74]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x74]
pop edx
call fcn.0065ebac
pop ecx
test al, al
jne 0x66013f
push ebp
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x78]
pop edx
call fcn.0065ea78
pop ecx
test al, al
je 0x65f8a1
push esi
push edi
mov esi, 0x6601ec
lea edi, [ebp - 0x98]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
call fcn.0065dd38
cmp ax, 0xff
ja 0x65f7bd
movzx eax, ax
bts dword [ebp - 0x98], eax
movzx eax, word [ebx + 4]
cmp ax, 0xff
ja 0x65f7d1
movzx eax, ax
bt dword [ebp - 0x98], eax
jae 0x65f8a1
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65f8a1
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jle 0x65f888
lea edx, [ebp - 0x9c]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x9c]
push eax
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xa0]
call fcn.0040b94c
mov eax, dword [ebp - 0xa0]
mov ecx, 1
pop edx
call fcn.0040bf10
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
sub eax, edi
pop edx
cmp edx, eax
jg 0x65f888
movzx eax, word [ebx + 4]
add eax, 0xffffffd0
sub ax, 0xa
jae 0x65f888
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
sub eax, edi
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0xa4]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x65f880
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
setg al
jmp 0x65f88a
xor eax, eax
test al, al
je 0x66013f
mov edx, 1
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
test eax, eax
jne 0x65f922
lea edx, [ebp - 0xa8]
mov eax, dword [esi]
call fcn.00663b00
cmp dword [ebp - 0xa8], 0
jne 0x65f922
call fcn.0065dd38
cmp ax, word [ebx + 4]
jne 0x65f922
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xb0]
call fcn.0040b94c
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
mov edx, 0x660218
call fcn.0040bb90
mov edx, dword [ebp - 0xac]
mov eax, dword [esi]
call fcn.0054295c
mov edx, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
jmp 0x66013f
cmp word [ebx + 4], 0x2d
jne 0x65fa95
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65fa95
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [esi]
movsx eax, word [eax + 0x334]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov word [eax + 0x334], 0
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov dword [ebp - 0xc], eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x6601a4
call fcn.0040bf10
test eax, eax
je 0x65fa14
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.0040bd48
mov eax, dword [esi]
mov ecx, dword [eax + 0x33c]
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 8]
call fcn.0040bb90
mov edx, dword [ebp - 0xb4]
mov eax, dword [esi]
call fcn.0054295c
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
cmp dword [ebp - 0xc], 0
jle 0x65f9e3
cmp edi, dword [ebp - 0xc]
jge 0x65f9e3
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
jmp 0x65fa83
mov eax, dword [esi]
mov eax, dword [eax + 0x338]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x65fa05
mov eax, dword [ebp - 0x2c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
jmp 0x65fa83
mov eax, dword [esi]
call fcn.00664c58
fldz
fcompp
wait
fnstsw ax
sahf
push 0x6601a4
lea edx, [ebp - 0xbc]
mov eax, dword [esi]
call fcn.00663b00
push dword [ebp - 0xbc]
mov eax, dword [esi]
push dword [eax + 0x33c]
lea eax, [ebp - 0xb8]
mov edx, 3
call fcn.0040bc18
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi]
call fcn.0054295c
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov eax, dword [esi]
movzx edx, word [ebp - 0x10]
mov word [eax + 0x334], dx
jmp 0x66013f
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
lea edx, [ebp - 0xc0]
mov eax, dword [esi]
call fcn.00663b00
cmp dword [ebp - 0xc0], 0
je case.default.0x65f21b
lea edx, [ebp - 0xc4]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xc4]
mov edx, 0x6601a4
call fcn.0040bcc8
je case.default.0x65f21b
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
je case.default.0x65f21b
mov eax, dword [esi]
call fcn.00561c34
test al, al
je 0x65fb01
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov eax, dword [esi]
call fcn.00664074
jmp case.default.0x65f21b
cmp word [ebx + 4], 0x2c
jne 0x65fb23
call fcn.0065dd38
cmp ax, 0x2c
jne 0x66013f
cmp word [ebx + 4], 0x2e
jne 0x65fb39
call fcn.0065dd38
cmp ax, 0x2e
jne 0x66013f
movzx eax, word [ebx + 4]
add eax, 0xfffffff8
sub ax, 2
jb 0x65fb76
sub ax, 3
je 0x65fb76
add eax, 0xffffffe1
sub ax, 3
jb 0x65fb76
dec eax
sub ax, 0xa
jb 0x65fb76
call fcn.0065dd28
cmp ax, word [ebx + 4]
je 0x65fb76
call fcn.0065dd38
cmp ax, word [ebx + 4]
jne case.default.0x65f21b
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
jne 0x65fc29
lea edx, [ebp - 0xc8]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x134]
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xcc]
call fcn.0040b94c
mov eax, dword [ebp - 0xcc]
mov ecx, 1
pop edx
call fcn.0040bf10
test eax, eax
jne 0x65fc29
lea edx, [ebp - 0xd0]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xd0]
push eax
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xd4]
call fcn.0040b94c
mov eax, dword [ebp - 0xd4]
mov ecx, 1
pop edx
call fcn.0040bf10
test eax, eax
jg 0x65fc0d
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jne 0x65fc29
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jle 0x66013f
mov eax, dword [esi]
call fcn.00660f38
jmp 0x66013f
cmp word [ebx + 4], 0x2c
jne 0x65fc91
lea edx, [ebp - 0xd8]
mov eax, dword [esi]
call fcn.00663b00
mov edx, dword [ebp - 0xd8]
mov ecx, 1
mov eax, 0x660228
call fcn.0040bf10
test eax, eax
jle 0x65fc91
lea edx, [ebp - 0xdc]
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x134]
mov edx, dword [ebp - 0xdc]
mov ecx, 1
mov eax, 0x660228
call fcn.0040bf10
test eax, eax
jne 0x65fc91
call fcn.0065dd28
movzx edx, word [ebx + 4]
cmp ax, dx
jne 0x66013f
call fcn.0065dd28
movzx edx, word [ebx + 4]
cmp ax, dx
je 0x65fcad
call fcn.0065dd38
movzx edx, word [ebx + 4]
cmp ax, dx
jne 0x65fcdb
push ebp
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
lea edx, [ebp - 0xe0]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xe0]
pop edx
call fcn.0065ebac
pop ecx
test al, al
jne 0x66013f
push ebp
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
push eax
lea edx, [ebp - 0xe4]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xe4]
pop edx
call fcn.0065ea78
pop ecx
test al, al
je 0x65fe18
push esi
push edi
mov esi, 0x6601ec
lea edi, [ebp - 0x98]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
call fcn.0065dd38
cmp ax, 0xff
ja 0x65fd34
movzx eax, ax
bts dword [ebp - 0x98], eax
movzx eax, word [ebx + 4]
cmp ax, 0xff
ja 0x65fd48
movzx eax, ax
bt dword [ebp - 0x98], eax
jae 0x65fe18
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65fe18
mov eax, dword [esi]
cmp word [eax + 0x334], 0
jle 0x65fdff
lea edx, [ebp - 0xe8]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xe8]
push eax
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xec]
call fcn.0040b94c
mov eax, dword [ebp - 0xec]
mov ecx, 1
pop edx
call fcn.0040bf10
push eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
sub eax, edi
pop edx
cmp edx, eax
jg 0x65fdff
movzx eax, word [ebx + 4]
add eax, 0xffffffd0
sub ax, 0xa
jae 0x65fdff
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
sub eax, edi
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0xf0]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x65fdf7
sub eax, 4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x34]
setg al
jmp 0x65fe01
xor eax, eax
test al, al
je 0x66013f
mov edx, 1
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
test eax, eax
jne 0x65fe99
lea edx, [ebp - 0xf4]
mov eax, dword [esi]
call fcn.00663b00
cmp dword [ebp - 0xf4], 0
jne 0x65fe99
call fcn.0065dd38
cmp ax, word [ebx + 4]
jne 0x65fe99
call fcn.0065dd38
mov edx, eax
lea eax, [ebp - 0xfc]
call fcn.0040b94c
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xf8]
mov edx, 0x660218
call fcn.0040bb90
mov edx, dword [ebp - 0xf8]
mov eax, dword [esi]
call fcn.0054295c
mov edx, 2
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
jmp 0x66013f
cmp word [ebx + 4], 0x2d
jne 0x65ffe2
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x65ffe2
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [esi]
movsx eax, word [eax + 0x334]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov word [eax + 0x334], 0
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov dword [ebp - 0xc], eax
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x6601a4
call fcn.0040bf10
test eax, eax
je 0x65ff61
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.0040bd48
mov eax, dword [esi]
mov ecx, dword [eax + 0x33c]
lea eax, [ebp - 0x100]
mov edx, dword [ebp - 8]
call fcn.0040bb90
mov edx, dword [ebp - 0x100]
mov eax, dword [esi]
call fcn.0054295c
cmp dword [ebp - 0xc], 0
jle 0x65ff4a
cmp edi, dword [ebp - 0xc]
jge 0x65ff4a
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
jmp 0x65ff56
mov edx, edi
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
jmp 0x65ffd0
mov eax, dword [esi]
call fcn.00664c58
fldz
fcompp
wait
fnstsw ax
sahf
push 0x6601a4
lea edx, [ebp - 0x108]
mov eax, dword [esi]
call fcn.00663b00
push dword [ebp - 0x108]
mov eax, dword [esi]
push dword [eax + 0x33c]
lea eax, [ebp - 0x104]
mov edx, 3
call fcn.0040bc18
mov edx, dword [ebp - 0x104]
mov eax, dword [esi]
call fcn.0054295c
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x138]
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov eax, dword [esi]
movzx edx, word [ebp - 0x10]
mov word [eax + 0x334], dx
jmp 0x66013f
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
lea eax, [ebp - 0x10c]
movzx edx, word [ebx + 4]
call fcn.0040b94c
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 8]
call fcn.004254cc
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov word [ebx + 4], ax
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
lea eax, [ebp - 0x110]
movzx edx, word [ebx + 4]
call fcn.0040b94c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 8]
call fcn.00425500
mov eax, dword [ebp - 8]
movzx eax, word [eax]
mov word [ebx + 4], ax
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
jmp case.default.0x65f21b
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov dword [ebp - 0xc], eax
mov edx, ebx
mov eax, dword [esi]
call fcn.0054aaa8
lea edx, [ebp - 0x118]
mov eax, dword [esi]
call fcn.00663b00
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.0065df6c
mov edx, dword [ebp - 0x114]
mov eax, dword [esi]
call fcn.0054295c
mov edx, dword [ebp - 0xc]
inc edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov eax, dword [esi]
cmp byte [eax + 0x2f4], 0
je 0x660124
mov eax, dword [esi]
cmp word [eax + 0x332], 0
jle 0x660124
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00663b00
mov edx, dword [ebp - 0x11c]
mov eax, dword [esi]
call fcn.00663a24
mov edx, dword [esi]
movsx edx, word [edx + 0x332]
cmp eax, edx
jle 0x660124
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x12c]
test eax, eax
jne 0x660124
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx + 0x130]
mov edx, dword [esi]
movsx edx, word [edx + 0x332]
cmp eax, edx
jne 0x660124
mov dl, 1
mov eax, dword [esi]
call fcn.005fe3a8
test eax, eax
je 0x660124
push 0
xor ecx, ecx
mov edx, 0x28
call fcn.00543e60
mov eax, dword [esi]
call fcn.00561c34
test al, al
je 0x660138
mov dl, 1
mov eax, dword [esi]
call fcn.006653c4
mov eax, dword [esi]
call fcn.0066706c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66018e
lea eax, [ebp - 0x11c]
mov edx, 0x21
call fcn.0040aab0
lea eax, [ebp - 0x78]
mov edx, 5
call fcn.0040aab0
lea eax, [ebp - 0x64]
call fcn.0040aa50
lea eax, [ebp - 0x60]
mov edx, 0xb
call fcn.0040aab0
lea eax, [ebp - 8]
call fcn.0040aa50
ret