Function at 0x401b90
Capabilities:
Capture screenshot
Log keystrokes via polling

Disassembly:
mov eax, dword [0x40f980]
sub esp, 0x34
push ebx
mov ebx, 1
push ebp
push esi
cmp eax, ebx
push edi
jne 0x401faf
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [esp + 0x48]
push eax
push esi
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x40efd4]
mov ecx, dword [0x40efd0]
mov edx, dword [0x40efcc]
mov edi, dword [sym.imp.GDI32.dll_Rectangle]
push eax
mov eax, dword [0x40efc8]
push ecx
push edx
push eax
push esi
call edi
mov ecx, dword [0x40efe4]
mov edx, dword [0x40efe0]
mov eax, dword [0x40efdc]
push ecx
mov ecx, dword [0x40efd8]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [0x40eff4]
mov eax, dword [0x40eff0]
mov ecx, dword [0x40efec]
push edx
mov edx, dword [0x40efe8]
push eax
push ecx
push edx
push esi
call edi
mov eax, dword [0x40f004]
mov ecx, dword [0x40f000]
mov edx, dword [0x40effc]
push eax
mov eax, dword [0x40eff8]
push ecx
push edx
push eax
push esi
call edi
mov ecx, dword [0x40f014]
mov edx, dword [0x40f010]
mov eax, dword [0x40f00c]
push ecx
mov ecx, dword [0x40f008]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [0x40f024]
mov eax, dword [0x40f020]
mov ecx, dword [0x40f01c]
push edx
mov edx, dword [0x40f018]
push eax
push ecx
push edx
push esi
call edi
mov eax, dword [0x40f974]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x40efd0]
mov ebp, dword [0x40efc8]
mov ecx, dword [0x40efcc]
mov edi, dword [0x40efd4]
sub eax, ebp
dec eax
sub edi, ecx
mov dword [esp + 0x10], eax
lea ecx, [edi + 1]
mov dword [esp + 0x48], ecx
fild dword [esp + 0x48]
lea edx, [eax + 1]
mov ecx, dword [0x40f97c]
mov dword [esp + 0x48], edx
mov dword [0x4236d8], 0
fild dword [esp + 0x48]
test ecx, ecx
mov dword [0x4236dc], 0
mov dword [esp + 0x14], 0
fmulp st(1)
fadd st(0), st(0)
fstp qword [0x4236e0]
jle 0x401f7d
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
call fcn.00401300
mov eax, dword [0x40f99c]
mov dword [esp + 0x48], 0
test eax, eax
jle 0x401ed0
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x401de0
mov dword [esp + 0x18], eax
mov ecx, dword [0x4236ac]
mov edx, dword [esp + 0x18]
mov eax, dword [0x40efcc]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [0x40efc8]
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov eax, dword [0x4236ac]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x40efdc]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [0x40efd8]
push edi
push ecx
lea ecx, [eax + ebp + 1]
push edx
push ecx
push esi
call ebx
mov edx, dword [0x4236ac]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x40efec]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [0x40efe8]
push edi
push eax
lea eax, [edx + ebp + 1]
push ecx
push eax
push esi
call ebx
mov ecx, dword [0x4236ac]
mov edx, dword [esp + 0x18]
mov eax, dword [0x40effc]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [0x40eff8]
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ebp
dec ecx
cmp ebp, eax
mov dword [esp + 0x18], ecx
jl 0x401d22
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x401eb9
mov ecx, dword [0x4236ac]
mov edx, dword [0x40efcc]
push 0xcc0020
push 0
push 0
lea eax, [ebp + 1]
push ecx
push edi
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [0x40efc8]
push edx
mov edx, dword [esp + 0x2c]
sub eax, ebp
add eax, edx
push eax
push esi
call ebx
mov ecx, dword [0x4236ac]
mov edx, dword [esp + 0x18]
mov eax, dword [0x40efdc]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [0x40efd8]
push edi
push edx
push eax
mov eax, dword [esp + 0x2c]
sub ecx, ebp
add ecx, eax
push ecx
push esi
call ebx
mov edx, dword [0x4236ac]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x40efec]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [0x40efe8]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ebp
add edx, ecx
push edx
push esi
call ebx
mov eax, dword [0x4236ac]
mov ecx, dword [esp + 0x18]
push 0xcc0020
mov edx, dword [0x40effc]
push 0
push 0
push eax
mov eax, dword [0x40eff8]
sub eax, ebp
mov ebp, dword [esp + 0x20]
push edi
push ecx
add eax, ebp
push edx
push eax
push esi
call ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp ebp, eax
jl 0x401dee
mov eax, dword [esp + 0x48]
mov ecx, dword [0x40f99c]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x401d10
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov ecx, dword [0x40f99c]
mov edx, dword [0x40efa0]
add edx, ecx
push 0x1b
fstp st(0)
mov dword [0x40efa0], edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
cmp edx, dword [0x423694]
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x401cfb
fld qword [0x40ed30]
fadd qword [0x4236d8]
push esi
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x401cf6
mov eax, dword [esp + 0x10]
fld qword [0x4236e0]
fdiv qword [0x4236d8]
add eax, eax
pop edi
mov dword [esp + 0x44], eax
pop esi
pop ebp
pop ebx
fild dword [esp + 0x38]
fmulp st(1)
fimul dword [0x40efa0]
fmul qword [0x40b1a8]
fstp qword [0x40f038]
add esp, 0x34
ret
cmp eax, 2
jne 0x4021df
mov ecx, dword [0x40f008]
mov edx, dword [0x40f00c]
dec ecx
dec edx
mov dword [0x40f8f8], edx
mov edx, dword [0x40f968]
mov dword [0x40f8a8], ecx
mov ecx, dword [0x40f964]
cmp edx, ebx
mov eax, ebx
jle 0x402009
mov esi, dword [eax*4 + 0x40f8a4]
add esi, ecx
mov dword [eax*4 + 0x40f8a8], esi
mov esi, dword [eax*4 + 0x40f8f4]
add esi, ecx
mov dword [eax*4 + 0x40f8f8], esi
inc eax
cmp eax, edx
jl 0x401fe4
mov eax, dword [0x40f97c]
mov dword [0x4236d8], 0
test eax, eax
mov dword [0x4236dc], 0
mov dword [esp + 0x14], 0
jle 0x402195
mov edi, dword [esp + 0x48]
call fcn.00401300
mov eax, dword [0x40f9a0]
mov dword [esp + 0x30], 0
test eax, eax
jle 0x4020e0
mov ecx, dword [0x40f968]
test ecx, ecx
mov dword [esp + 0x48], 0
jle 0x4020c9
mov ebp, 0x40f8a8
mov esi, 0x40f8f8
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push edi
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi]
mov edx, dword [0x40f964]
mov ecx, dword [ebp]
lea ebx, [eax + edx]
add edx, ecx
push ebx
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_Ellipse]
mov eax, dword [0x40f974]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
add esi, 4
cmp esi, 0x40f918
jl 0x40206c
mov eax, dword [esp + 0x48]
mov ecx, dword [0x40f968]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x402067
mov eax, dword [esp + 0x30]
mov edx, dword [0x40f9a0]
inc eax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x402056
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push edi
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov ecx, dword [0x40f9a0]
mov edx, dword [0x40efa4]
add edx, ecx
push 0x1b
fstp st(0)
mov dword [0x40efa4], edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
cmp edx, dword [0x423694]
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x40203b
fld qword [0x40ed30]
fadd qword [0x4236d8]
push edi
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402036
mov edx, dword [0x40f968]
mov ecx, dword [0x40f964]
mov eax, ecx
pop edi
imul eax, ecx
mov dword [esp + 0x44], eax
lea ecx, [edx*8]
fild dword [esp + 0x44]
mov dword [esp + 0x44], ecx
pop esi
fild dword [esp + 0x40]
pop ebp
pop ebx
fmulp st(1)
fmul qword [0x40b1a0]
fst qword [0x4236e8]
fdiv qword [0x4236d8]
fimul dword [0x40efa4]
fmul qword [0x40b1a8]
fstp qword [0x40f040]
add esp, 0x34
ret
cmp eax, 3
jne 0x4023eb
mov eax, dword [0x40f97c]
mov dword [0x4236d8], 0
test eax, eax
mov dword [0x4236dc], 0
mov dword [esp + 0x14], 0
jle 0x402390
mov esi, dword [esp + 0x48]
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [sym.imp.GDI32.dll_Rectangle]
call fcn.00401300
mov eax, dword [0x40f9a4]
mov dword [esp + 0x48], 0
test eax, eax
jle 0x4022e8
mov eax, dword [0x4236b0]
xor ebx, ebx
test eax, eax
jle 0x4022d1
push 0
call ebp
push eax
push esi
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x40efe4]
mov eax, dword [0x40efe0]
mov ecx, dword [0x40efdc]
push edx
mov edx, dword [0x40efd8]
push eax
push ecx
push edx
push esi
call edi
mov eax, dword [0x40eff4]
mov ecx, dword [0x40eff0]
mov edx, dword [0x40efec]
push eax
mov eax, dword [0x40efe8]
push ecx
push edx
push eax
push esi
call edi
mov ecx, dword [0x40f004]
mov edx, dword [0x40f000]
mov eax, dword [0x40effc]
push ecx
mov ecx, dword [0x40eff8]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [0x40f974]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4236b0]
add ebx, 3
cmp ebx, eax
jl 0x40224a
mov ecx, dword [esp + 0x48]
mov edx, dword [0x40f9a4]
inc ecx
cmp ecx, edx
mov dword [esp + 0x48], ecx
jl 0x402240
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov eax, dword [0x40f9a4]
mov edx, dword [0x40efa8]
add edx, eax
push 0x1b
fstp st(0)
mov dword [0x40efa8], edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
cmp ecx, dword [0x423694]
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x402226
fld qword [0x40ed30]
fadd qword [0x4236d8]
push esi
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402221
mov edx, dword [0x40efe0]
mov edi, dword [0x40efd8]
mov eax, dword [0x40efe4]
sub edx, edi
inc edx
pop edi
mov dword [esp + 0x44], edx
mov edx, dword [0x40efdc]
fild dword [esp + 0x44]
sub eax, edx
pop esi
inc eax
pop ebp
mov dword [esp + 0x3c], eax
pop ebx
fild dword [esp + 0x38]
fmulp st(1)
fst qword [0x4236f0]
fdiv qword [0x4236d8]
fimul dword [0x40efa8]
fimul dword [0x4236b0]
fmul qword [0x40b1a8]
fstp qword [0x40f048]
add esp, 0x34
ret
cmp eax, 4
jne 0x4026c2
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [esp + 0x48]
push eax
push ebx
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x40f97c]
mov dword [0x4236d8], 0
test eax, eax
mov dword [0x4236dc], 0
mov dword [esp + 0x14], 0
jle 0x4025d6
call fcn.00401300
mov eax, dword [0x40f9a8]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x48], esi
jle 0x40252e
mov edi, dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [0x40eff4]
mov edx, dword [0x40eff0]
mov eax, dword [0x40efec]
push ecx
mov ecx, dword [0x40efe8]
push edx
push eax
push ecx
push ebx
call edi
mov edx, dword [0x40f004]
mov eax, dword [0x40f000]
mov ecx, dword [0x40effc]
push edx
mov edx, dword [0x40eff8]
push eax
push ecx
push edx
push ebx
call edi
mov eax, dword [0x40eff0]
mov ebp, dword [0x40efe8]
inc eax
cmp ebp, eax
jge 0x402517
mov ecx, dword [0x40eff4]
mov edi, dword [0x40efec]
inc ecx
cmp edi, ecx
jge 0x4024d3
push 0
push edi
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, 0x1f4
jle 0x4024c7
xor esi, esi
mov edx, dword [0x40eff4]
inc edi
inc edx
cmp edi, edx
jl 0x4024b1
mov eax, dword [0x40f004]
mov edi, dword [0x40effc]
inc eax
cmp edi, eax
jge 0x402505
push 0
push edi
push ebp
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
inc esi
cmp esi, 0x1f4
jle 0x4024f9
xor esi, esi
mov ecx, dword [0x40f004]
inc edi
inc ecx
cmp edi, ecx
jl 0x4024e3
mov edx, dword [0x40eff0]
inc ebp
inc edx
cmp ebp, edx
jl 0x4024a0
mov edi, dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x48]
mov ecx, dword [0x40f9a8]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x402454
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov eax, dword [0x40f9a8]
mov edx, dword [0x40efac]
add edx, eax
push 0x1b
fstp st(0)
mov dword [0x40efac], edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
cmp ecx, dword [0x423694]
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x40243b
fld qword [0x40ed30]
fadd qword [0x4236d8]
push ebx
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x4026ad
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402436
mov eax, dword [0x40eff0]
mov edx, dword [0x40efe8]
mov ecx, dword [0x40eff4]
mov ebp, dword [0x40efec]
sub eax, edx
sub ecx, ebp
inc eax
inc ecx
mov dword [esp + 0x48], eax
mov edx, dword [0x40f974]
fild dword [esp + 0x48]
mov dword [esp + 0x48], ecx
push edx
fild dword [esp + 0x4c]
fmulp st(1)
fadd st(0), st(0)
fst qword [0x4236f8]
fdiv qword [0x4236d8]
fimul dword [0x40efac]
fmul qword [0x40b1a8]
fstp qword [0x40f050]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x40efec]
mov esi, dword [0x40eff4]
mov ebp, dword [0x40efe8]
mov edi, dword [0x40eff0]
sub esi, eax
sub edi, ebp
push esi
push edi
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateDiscardableBitmap]
push 0x419618
push 0x18
push eax
mov dword [0x42369c], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [0x42369c]
mov dword [0x42368c], eax
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x18]
mov eax, dword [0x42368c]
push 0xcc0020
push edx
push ebp
push ebx
push esi
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edx, dword [0x40f974]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp eax, 5
jne 0x4029bd
mov ecx, dword [0x40eff8]
mov eax, dword [0x40effc]
mov edx, dword [0x40f000]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x40f004]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [0x40f09c]
mov eax, 8
cmp ecx, 0x320
mov dword [esp + 0x34], edx
mov dword [esp + 0x1c], eax
jle 0x402712
mov eax, 0x10
mov dword [esp + 0x1c], eax
jne 0x40271d
mov eax, 0xc
mov dword [esp + 0x1c], eax
cdq
sub eax, edx
mov dword [esp + 0x24], 1
mov ebp, eax
mov eax, dword [0x40f97c]
sar ebp, 1
test eax, eax
mov dword [0x423700], 0
mov dword [0x423704], 0
mov dword [0x4236d8], 0
mov dword [0x4236dc], 0
mov dword [esp + 0x14], 0
jle 0x40299d
mov ebx, dword [esp + 0x48]
call fcn.00401300
mov eax, dword [0x40f9ac]
mov dword [esp + 0x48], 0
test eax, eax
jle 0x4028f4
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub eax, edx
sub eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
push 0
lea edi, [eax + ebp]
lea eax, [ecx + ebp]
push eax
push edi
push ebx
mov dword [esp + 0x20], edx
call dword [sym.imp.GDI32.dll_MoveToEx]
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
mov dword [0x40f8a4], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [0x423698], eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jle 0x4027f0
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], 9
lea edx, [eax + eax]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esp + 0x18]
sub eax, edx
add eax, esi
mov esi, edi
add eax, ecx
sub esi, ecx
mov dword [esp + 0x20], eax
add eax, eax
add esi, edx
sub eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
push esi
add eax, edi
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [esi + ecx]
push eax
lea eax, [edi + edx]
push eax
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
lea ecx, [esi + ebp]
push ecx
push edi
push ebx
call dword [sym.imp.GDI32.dll_LineTo]
fild dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
sub edx, eax
fiadd dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
add eax, eax
sub edx, eax
sub ecx, eax
mov eax, dword [esp + 0x38]
add edi, ebp
add esi, ebp
dec eax
fadd qword [0x423700]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
fstp qword [0x423700]
jne 0x40282d
mov edx, dword [0x423698]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x40f8a4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x48]
mov ecx, dword [0x40f9ac]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x40279b
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push ebx
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov ecx, dword [0x40f9ac]
mov edx, dword [0x40efb0]
add edx, ecx
push 0x1b
fstp st(0)
mov dword [0x40efb0], edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
cmp edx, dword [0x423694]
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x402772
fld qword [0x40ed30]
fadd qword [0x4236d8]
push ebx
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40276d
fld qword [0x423700]
fdiv qword [0x4236d8]
pop edi
pop esi
pop ebp
pop ebx
fmul qword [0x40b1a8]
fstp qword [0x40f058]
add esp, 0x34
ret
cmp eax, 6
jne 0x402d40
mov eax, dword [0x40efd0]
mov edi, dword [0x40efd4]
mov esi, dword [0x40efc8]
mov edx, dword [0x40efcc]
sub eax, esi
sub edi, edx
mov dword [esp + 0x3c], eax
dec eax
lea ecx, [edi + 1]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ecx
lea edx, [eax + 1]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov ecx, dword [0x40f97c]
fild dword [esp + 0x40]
test ecx, ecx
mov dword [0x4236d8], 0
mov dword [0x4236dc], 0
fmulp st(1)
mov dword [esp + 0x14], 0
fadd st(0), st(0)
fstp qword [0x423708]
jle 0x402d0d
mov esi, dword [esp + 0x48]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [0x40efcc]
mov ecx, dword [0x40efc8]
mov edx, dword [esp + 0x3c]
push 0xcc0020
push eax
mov eax, dword [0x40f01c]
push ecx
mov ecx, dword [0x40f018]
push esi
push edi
push edx
push eax
push ecx
push esi
call ebx
call fcn.00401300
mov eax, dword [0x40f9b0]
mov dword [esp + 0x48], 0
test eax, eax
jle 0x402c5e
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x402b5f
mov edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [0x40f01c]
mov ecx, dword [0x40f018]
mov edx, dword [esp + 0x18]
push 0xcc0020
push eax
mov eax, dword [0x40efcc]
push ecx
mov ecx, dword [0x40efc8]
push esi
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov eax, dword [0x40f01c]
mov ecx, dword [0x40f018]
mov edx, dword [esp + 0x18]
push 0xcc0020
push eax
mov eax, dword [0x40efdc]
push ecx
mov ecx, dword [0x40efd8]
push esi
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov eax, dword [0x40f01c]
mov ecx, dword [0x40f018]
mov edx, dword [esp + 0x18]
push 0xcc0020
push eax
mov eax, dword [0x40efec]
push ecx
mov ecx, dword [0x40efe8]
push esi
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov eax, dword [0x40f01c]
mov ecx, dword [0x40f018]
mov edx, dword [esp + 0x18]
push 0xcc0020
push eax
mov eax, dword [0x40effc]
push ecx
mov ecx, dword [0x40eff8]
push esi
push edi
push edx
lea edx, [ecx + ebp + 1]
push eax
push edx
push esi
call ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc ebp
dec ecx
cmp ebp, eax
mov dword [esp + 0x18], ecx
jl 0x402a95
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
jle 0x402c47
mov ecx, dword [0x40f01c]
mov edx, dword [0x40f018]
push 0xcc0020
push ecx
mov ecx, dword [0x40efc8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [ebp + 1]
push esi
push edi
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [0x40efcc]
sub ecx, ebp
add ecx, edx
push eax
push ecx
push esi
call ebx
mov edx, dword [0x40f01c]
mov eax, dword [0x40f018]
mov ecx, dword [esp + 0x18]
push 0xcc0020
push edx
mov edx, dword [0x40efdc]
push eax
mov eax, dword [0x40efd8]
push esi
push edi
push ecx
mov ecx, dword [esp + 0x28]
sub eax, ebp
push edx
add eax, ecx
push eax
push esi
call ebx
mov ecx, dword [0x40f01c]
mov edx, dword [0x40f018]
mov eax, dword [esp + 0x18]
push 0xcc0020
push ecx
mov ecx, dword [0x40efec]
push edx
mov edx, dword [0x40efe8]
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
sub edx, ebp
push ecx
add edx, eax
push edx
push esi
call ebx
mov eax, dword [0x40f01c]
mov ecx, dword [0x40f018]
mov edx, dword [esp + 0x18]
push 0xcc0020
push eax
mov eax, dword [0x40effc]
push ecx
mov ecx, dword [0x40eff8]
sub ecx, ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push edx
add ecx, ebp
push eax
push ecx
push esi
call ebx
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cmp ebp, eax
jl 0x402b6d
mov eax, dword [esp + 0x48]
mov ecx, dword [0x40f9b0]
inc eax
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x402a81
call dword [sym.imp.GDI32.dll_GdiFlush]
push 0
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_SetPixel]
push 1
push 2
push esi
call dword [sym.imp.GDI32.dll_GetPixel]
or dword [0x40f098], eax
call fcn.00401310
mov edx, dword [0x40f9b0]
mov ebp, dword [0x40efb4]
add ebp, edx
push 0x1b
fstp st(0)
mov dword [0x40efb4], ebp
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [0x423694]
movsx eax, ax
cmp eax, ecx
jne 0x402ea3
fld qword [0x40ed30]
fcomp qword [0x423730]
fnstsw ax
test ah, 5
jnp 0x402a6c
fld qword [0x40ed30]
fadd qword [0x4236d8]
push esi
fstp qword [0x4236d8]
call fcn.00403250
add esp, 4
test eax, eax
je 0x402fe8
mov eax, dword [esp + 0x14]
mov ecx, dword [0x40f97c]
add eax, 5
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x402a3e
mov eax, dword [esp + 0x10]
fld qword [0x423708]
fdiv qword [0x4236d8]
lea ecx, [eax + eax]
pop edi
mov dword [esp + 0x44], ecx
pop esi
pop ebp
pop ebx
fild dword [esp + 0x38]
fmulp st(1)
fimul dword [0x40efb4]
fmul qword [0x40b1a8]
fstp qword [0x40f060]
add esp, 0x34
ret
cmp eax, 7
jne 0x402ebf
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [esp + 0x48]
push eax
push edi
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x4236d0]
mov eax, dword [0x4236cc]
mov ecx, dword [0x4236c8]
push edx
mov edx, dword [0x4236c4]
push eax
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [0x40f974]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push ebx
push ebx
push edi
mov dword [0x4236d8], 0
mov dword [0x4236dc], 0
mov dword [0x40efb8], 0
call dword [sym.imp.GDI32.dll_MoveToEx]
call fcn.00401300
xor esi, esi
mov ebx, 1
mov dword [esp + 0x48], 0xc8
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push edi
mov dword [0x40f8a4], eax
call dword [sym.imp.GDI32.dll_SelectObject]
inc ebx
mov dword [0x423698], eax
cmp ebx, 0xdc
jle 0x402df9
mov ebx, 1
mov ebp, 0x32
mov ecx, dword [esi*4 + 0x40f9d8]
mov edx, dword [esi*4 + 0x419630]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
inc esi
dec ebp
jne 0x402dfe
mov eax, dword [0x423698]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x40f8a4]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x48], eax
jne 0x402dcd
inc dword [0x40efb8]
call fcn.00401310
fstp st(0)
fild dword [0x40efb8]
push 0x1b
fdiv qword [0x40ed30]
fstp qword [0x40f068]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
cmp edx, dword [0x423694]
jne 0x402ea3
fild dword [0x40f97c]
fcomp qword [0x40ed30]
fnstsw ax
and eax, 0x4100
je 0x402dbe
fild dword [0x40efb8]
pop edi
pop esi
pop ebp
pop ebx
fdiv qword [0x40ed30]
fstp qword [0x40f068]
add esp, 0x34
ret
pop edi
pop esi
pop ebp
mov dword [0x40f978], 1
mov dword [0x40f980], 9
pop ebx
add esp, 0x34
ret
cmp eax, 8
jne 0x402fe8
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [esp + 0x48]
push eax
push esi
mov dword [0x40f974], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x4236d0]
mov ecx, dword [0x4236cc]
mov edx, dword [0x4236c8]
push eax
mov eax, dword [0x4236c4]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [0x40f974]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x40efbc], 0
mov dword [0x4236b8], ebx
call fcn.00401300
push esi
call fcn.00402ff0
add esp, 4
test eax, eax
je 0x402fe8
call fcn.00401310
fstp st(0)
fld qword [0x40ed30]
fcomp qword [0x40b198]
fnstsw ax
test ah, 5
jp 0x402f65
fld qword [0x40b198]
fdiv qword [0x40ed30]
call fcn.00403d80
mov dword [0x4236b8], eax
call fcn.00401300
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
call fcn.00402ff0
add esp, 4
test eax, eax
je 0x402fe8
mov edx, dword [0x4236b8]
mov ebp, dword [0x40efbc]
add ebp, edx
mov dword [0x40efbc], ebp
call fcn.00401310
fstp st(0)
fild dword [0x40efbc]
push 0x1b
fdiv qword [0x40ed30]
fstp qword [0x40f070]
call edi
mov ecx, dword [0x423694]
movsx eax, ax
cmp eax, ecx
jne 0x402fd8
fild dword [0x40f97c]
fcomp qword [0x40ed30]
fnstsw ax
and eax, 0x4100
je 0x402f70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [0x40f978], ebx
mov dword [0x40f980], 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret