Function at 0x40ef40
Capabilities:
Check os version
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4667c6
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x482ad0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x482ad0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x17
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x88], ebx
lea esi, [ebx + 1]
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40efa8
mov esi, 2
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx eax, ax
cmp ax, bx
je 0x40efc2
mov dword [esp + 0x84], 1
push 0x4871f0
lea edx, [esp + 0x68]
push edx
mov esi, 0x4871a4
call fcn.004017c0
mov eax, dword [0x4871a4]
mov esi, dword [0x4871bc]
mov edi, dword [esp + 0x64]
cmp eax, ebx
je 0x40efed
cmp eax, edi
je 0x40eff2
call fcn.0044aa49
cmp esi, dword [esp + 0x68]
je 0x40fdb2
cmp edi, ebx
jne 0x40f383
call fcn.0044aa49
xor eax, eax
mov ecx, dword [esp + 0x68]
cmp ecx, dword [eax + 0x18]
jne 0x40f019
call fcn.0044aa49
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x20]
lea edx, [esp + 0x54]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
fldz
lea edx, [esp + 0x6c]
fstp dword [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
sub dword [esp + 0x6c], eax
sub dword [esp + 0x70], ecx
push 0x11c
lea edx, [esp + 0xa0]
push ebx
push edx
call fcn.0044cd10
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0xa0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xac], 2
jne 0x40f38a
cmp dword [esp + 0xa0], 6
jne 0x40f38a
cmp dword [esp + 0xa4], 1
jne 0x40f38a
push 0x2711
call fcn.00401870
call fcn.0040c980
mov edi, eax
cmp edi, ebx
je 0x40f170
mov esi, edi
call fcn.00402dd0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x40f0d8
fadd dword [0x473a0c]
fstp dword [esp + 0x24]
mov esi, edi
fldz
fst dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fstp dword [esp + 0x3c]
fld dword [0x473a08]
fstp dword [esp + 0x40]
call fcn.00402da0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x40f111
fadd dword [0x473a0c]
push ecx
mov esi, edi
fstp dword [esp]
call fcn.00402dd0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x40f12e
fadd dword [0x473a0c]
mov esi, dword [esp + 0x30]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0x44]
fldz
mov ecx, edi
fst dword [esp + 4]
fstp dword [esp]
call fcn.00402e20
mov esi, edi
call fcn.00402dd0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x40f166
fadd dword [0x473a0c]
fadd qword [0x4739e0]
fstp dword [esp + 0x20]
push 0x2712
call fcn.00401870
call fcn.0040c980
mov edi, eax
cmp edi, ebx
je 0x40f2d0
mov ecx, dword [esp + 0x5c]
fld dword [esp + 0x20]
sub ecx, dword [esp + 0x54]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40f2d0
fldz
fstp dword [esp + 0x38]
fld dword [0x473a08]
fstp dword [esp + 0x40]
lea ebx, [ebx]
mov eax, dword [edi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f1d9
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x14]
fild dword [esp + 0x14]
test ecx, ecx
jge 0x40f1eb
fadd dword [0x473a0c]
mov eax, dword [edi + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
lea edx, [esp + 0x14]
fstp dword [esp + 0x34]
push edx
fld dword [esp + 0x28]
push eax
fstp dword [esp + 0x44]
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f218
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f235
mov dword [edi + 8], eax
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
test esi, esi
jge 0x40f247
fadd dword [0x473a0c]
mov eax, dword [esp + 0x1c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x2c]
test eax, eax
jge 0x40f260
fadd dword [0x473a0c]
mov esi, dword [esp + 0x3c]
fstp dword [esp + 8]
fldz
lea eax, [esp + 0x44]
fst dword [esp + 4]
mov ecx, edi
fstp dword [esp]
call fcn.00402e20
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f295
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
test eax, eax
jge 0x40f2a7
fadd dword [0x473a0c]
fadd dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
fstp dword [esp + 0x20]
mov dword [esp + 0x24], ecx
fld dword [esp + 0x20]
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
je 0x40f1c0
push 0x2713
call fcn.00401870
call fcn.0040c980
mov esi, eax
cmp esi, ebx
je 0x40f7b4
mov edi, dword [esp + 0x5c]
sub edi, dword [esp + 0x54]
call fcn.00402dd0
sub edi, eax
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
test edi, edi
jge 0x40f30a
fadd dword [0x473a0c]
fstp dword [esp + 0x20]
call fcn.00402dd0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x40f325
fadd dword [0x473a0c]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fstp dword [esp + 0x34]
fldz
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fstp dword [esp + 0x3c]
fld dword [0x473a08]
fstp dword [esp + 0x40]
call fcn.00402da0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
test eax, eax
jge 0x40f360
fadd dword [0x473a0c]
push ecx
fstp dword [esp]
call fcn.00402dd0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
test eax, eax
jge 0x40f37b
fadd dword [0x473a0c]
sub esp, 0xc
jmp 0x40f798
mov eax, dword [edi]
jmp 0x40f00b
push 0x2711
call fcn.00401870
call fcn.0040c980
mov edi, eax
cmp edi, ebx
je 0x40f4c9
mov eax, dword [edi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f3bc
mov dword [edi + 8], eax
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f3d9
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x40f3eb
fadd dword [0x473a0c]
fstp dword [esp + 0x24]
mov dword [esp + 0x18], esi
fldz
fst dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
test esi, esi
jge 0x40f413
fadd dword [0x473a0c]
mov edx, dword [edi + 4]
fstp dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f430
mov dword [edi + 8], eax
mov ecx, dword [edi + 4]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f44d
mov dword [edi + 8], eax
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
test esi, esi
jge 0x40f45f
fadd dword [0x473a0c]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x2c]
test edx, edx
jge 0x40f478
fadd dword [0x473a0c]
mov esi, dword [esp + 0x3c]
fstp dword [esp + 8]
fldz
lea eax, [esp + 0x44]
fst dword [esp + 4]
mov ecx, edi
fstp dword [esp]
call fcn.00402e20
mov ecx, dword [edi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f4ad
mov dword [edi + 8], eax
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x40f4bf
fadd dword [0x473a0c]
fadd qword [0x4739e0]
fstp dword [esp + 0x20]
push 0x2712
call fcn.00401870
call fcn.0040c980
mov esi, eax
cmp esi, ebx
je 0x40f66b
mov eax, dword [esp + 0x5c]
fld dword [esp + 0x20]
sub eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40f66b
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f51c
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f539
mov dword [esi + 8], eax
mov edx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test edx, edx
jge 0x40f54b
fadd dword [0x473a0c]
mov dword [esp + 0x18], edi
fstp dword [esp + 0x44]
fild dword [esp + 0x18]
test edi, edi
jge 0x40f561
fadd dword [0x473a0c]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x40]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f57e
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f59b
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test ecx, ecx
jge 0x40f5ad
fadd dword [0x473a0c]
push ebx
fstp dword [esp + 0x28]
push ebx
push ebx
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
push 2
test edi, edi
jge 0x40f5c8
fadd dword [0x473a0c]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov ecx, dword [eax]
fld dword [esp + 0x54]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fst dword [esp + 0x10]
fld dword [esp + 0x70]
fstp dword [esp + 0xc]
fld dword [esp + 0x74]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [esp + 0x50]
fstp dword [esp]
push edx
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x40f617
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f630
mov dword [esi + 8], eax
mov edx, dword [esp + 0x14]
fild dword [esp + 0x14]
test edx, edx
jge 0x40f642
fadd dword [0x473a0c]
fadd dword [esp + 0x20]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x54]
fstp dword [esp + 0x20]
mov dword [esp + 0x24], eax
fld dword [esp + 0x20]
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
je 0x40f503
push 0x2713
call fcn.00401870
call fcn.0040c980
mov esi, eax
cmp esi, ebx
je 0x40f7b4
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x5c]
sub edi, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f6a5
mov dword [esi + 8], eax
sub edi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
test edi, edi
jge 0x40f6bb
fadd dword [0x473a0c]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f6d8
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f6f5
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test ecx, ecx
jge 0x40f707
fadd dword [0x473a0c]
fstp dword [esp + 0x24]
mov dword [esp + 0x18], edi
fld dword [esp + 0x20]
fstp dword [esp + 0x34]
fldz
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fstp dword [esp + 0x3c]
fild dword [esp + 0x18]
test edi, edi
jge 0x40f733
fadd dword [0x473a0c]
mov eax, dword [esi + 4]
fstp dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40f750
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x24], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40f76d
mov dword [esi + 8], eax
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
test edi, edi
jge 0x40f77f
fadd dword [0x473a0c]
mov eax, dword [esp + 0x1c]
sub esp, 0x10
fstp dword [esp + 0xc]
fild dword [esp + 0x2c]
test eax, eax
jge 0x40f798
fadd dword [0x473a0c]
fstp dword [esp + 8]
mov ecx, esi
fldz
mov esi, dword [esp + 0x3c]
fst dword [esp + 4]
lea eax, [esp + 0x44]
fstp dword [esp]
call fcn.00402e20
mov eax, dword [esp + 0x68]
mov esi, dword [eax + 0xc4]
cmp esi, dword [eax + 0xc8]
jbe 0x40f7cb
call fcn.0044aa49
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xb8]
lea edi, [esi + 0x18]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x1c], edi
jmp 0x40f7f0
mov esi, dword [eax + 0xc8]
cmp dword [eax + 0xc4], esi
jbe 0x40f80e
call fcn.0044aa49
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 0xb8]
cmp ecx, ebx
je 0x40f81c
cmp ecx, eax
je 0x40f828
call fcn.0044aa49
mov ecx, dword [esp + 0x88]
lea eax, [edi - 0x18]
cmp eax, esi
je 0x40fdb2
cmp ecx, ebx
jne 0x40f8be
call fcn.0044aa49
xor eax, eax
lea ecx, [edi - 0x18]
cmp ecx, dword [eax + 0x10]
jb 0x40f84f
call fcn.0044aa49
cmp dword [edi + 8], 2
mov ecx, dword [edi - 8]
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x18]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi - 0x10]
mov dword [esp + 0x38], edx
mov edx, dword [edi - 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jne 0x40f893
add eax, eax
mov ecx, eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
sub eax, dword [esp + 0x54]
push ebx
push eax
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x40f8c8
cmp dword [esp + 0x84], ebx
jne 0x40f8c2
mov eax, dword [edi - 4]
mov dword [esp + 0x20], eax
jmp 0x40f8c8
mov eax, dword [ecx]
jmp 0x40f842
mov ecx, dword [edi]
mov dword [esp + 0x20], ecx
call fcn.0041bb26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40fda8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1d0], ebx
mov eax, dword [edi + 4]
cmp eax, 0x3e8
jge 0x40fa74
call fcn.0041bb26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40fda8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x1d0], 1
mov edx, dword [ecx]
mov eax, dword [edx + 0x144]
call eax
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x148]
call eax
cmp eax, ebx
je 0x40f95d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x144]
call eax
mov esi, eax
cmp esi, ebx
je 0x40f972
add esi, 0x20
push esi
lea ecx, [esp + 0x34]
call fcn.00408e30
mov edi, dword [esp + 0x30]
mov ecx, 0x4722f8
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f9a6
cmp dx, bx
je 0x40f9a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f9a6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40f980
xor eax, eax
jmp 0x40f9ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40f9d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
add ecx, 0x8000
cmp ecx, 0x8067
jne 0x40fa4f
mov edx, dword [eax]
mov dword [esp + 0x20], edx
jmp 0x40fa4f
mov ecx, str.homepage
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40f9fd
cmp dx, bx
je 0x40f9f9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40f9fd
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40f9d7
xor eax, eax
jmp 0x40fa02
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
jne 0x40fa23
add ecx, 0x8000
cmp ecx, 0x8066
jne 0x40fa4f
mov edx, dword [eax]
mov dword [esp + 0x20], edx
jmp 0x40fa4f
add ecx, 0x8000
cmp ecx, 0x8065
jne 0x40fa4f
mov edx, dword [eax]
mov eax, dword [0x4871ec]
push eax
lea ecx, [esp + 0x18]
push 0x472314
push ecx
mov dword [esp + 0x2c], edx
call fcn.004031f0
add esp, 0xc
lea eax, [edi - 0x10]
mov byte [esp + 0x1d0], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fa97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40fa97
add eax, 0x8000
cmp eax, 0x83eb
jne 0x40fa97
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x40fa97
sub dword [esp + 0x20], 3
mov eax, dword [esp + 0x20]
push eax
call fcn.00401870
call fcn.0040c980
mov esi, eax
cmp esi, ebx
je 0x40fd3d
fild dword [esp + 0x34]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x30]
push ecx
fstp dword [esp + 0x24]
push edx
fild dword [esp + 0x40]
mov dword [esp + 0x38], ebx
fstp dword [esp + 0x20]
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40fad9
mov dword [esi + 8], eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40faf6
mov dword [esi + 8], eax
mov edx, dword [esp + 0x28]
fild dword [esp + 0x28]
test edx, edx
jge 0x40fb08
fadd dword [0x473a0c]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fstp dword [esp + 0x74]
fld dword [esp + 0x18]
mov dword [esp + 0x18], edi
fstp dword [esp + 0x78]
fld dword [esp + 0x28]
fstp dword [esp + 0x7c]
fild dword [esp + 0x18]
test edi, edi
jge 0x40fb36
fadd dword [0x473a0c]
mov ecx, dword [esi + 4]
fstp dword [esp + 0x80]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40fb56
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x38], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40fb73
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x30]
fild dword [esp + 0x30]
test ecx, ecx
jge 0x40fb85
fadd dword [0x473a0c]
push ebx
fstp dword [esp + 0x1c]
push ebx
push ebx
mov dword [esp + 0x9c], edi
fild dword [esp + 0x9c]
push 2
test edi, edi
jge 0x40fba6
fadd dword [0x473a0c]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
sub esp, 0x20
fstp dword [esp + 0x1c]
mov ecx, dword [eax]
fld dword [esp + 0x48]
fstp dword [esp + 0x18]
fldz
fst dword [esp + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0xb0]
fstp dword [esp + 0xc]
fld dword [esp + 0xac]
fstp dword [esp + 8]
fld dword [esp + 0xa8]
fstp dword [esp + 4]
fld dword [esp + 0xa4]
fstp dword [esp]
push edx
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRect
cmp eax, ebx
je 0x40fc05
mov edx, dword [esp + 0x2c]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40fc1e
mov dword [esi + 8], eax
mov edx, dword [esp + 0x28]
fild dword [esp + 0x28]
test edx, edx
jge 0x40fc30
fadd dword [0x473a0c]
fadd dword [esp + 0x20]
mov edi, dword [esp + 0x14]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fadd qword [0x473a00]
fstp dword [esp + 0x78]
fld dword [0x4739fc]
fstp dword [esp + 0x7c]
cmp dword [edi - 0xc], ebx
je 0x40fd3d
push 0x47231c
lea ecx, [esp + 0x28]
call fcn.00411540
fld dword [0x4739f8]
push ecx
mov ecx, dword [esp + 0x28]
fstp dword [esp]
lea esi, [esp + 0x98]
call fcn.004113b0
lea eax, [esp + 0x4c]
push eax
push ebx
push ebx
mov dword [esp + 0x58], ebx
call sub.gdiplus.dll_GdipCreateStringFormat
lea ecx, [esp + 0x44]
push ecx
push 0xffd8d6af
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], ebx
call sub.gdiplus.dll_GdipCreateSolidFill
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push ebx
push edx
call sub.gdiplus.dll_GdipSetStringFormatAlign
cmp eax, ebx
je 0x40fcc3
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
push 2
push eax
call sub.gdiplus.dll_GdipSetStringFormatLineAlign
cmp eax, ebx
je 0x40fcd7
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x94]
push esi
push ecx
lea edx, [esp + 0x7c]
push edx
push eax
push 0xffffffffffffffff
push edi
mov edi, dword [esp + 0x44]
mov ecx, dword [edi]
push ecx
call sub.gdiplus.dll_GdipDrawString
cmp eax, ebx
je 0x40fd00
mov dword [edi + 4], eax
push esi
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x4c]
push edx
call sub.gdiplus.dll_GdipDeleteStringFormat
mov eax, dword [esp + 0x94]
push eax
call sub.gdiplus.dll_GdipDeleteFont
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1d0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
cmp eax, ebx
jne 0x40fda4
call fcn.0044aa49
xor eax, eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xffffffe8
cmp ecx, dword [eax + 0x10]
jb 0x40fd8b
call fcn.0044aa49
add dword [esp + 0x1c], 0x24
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x1c]
jmp 0x40f7f0
mov eax, dword [eax]
jmp 0x40fd7a
push 0x80004005
call fcn.00403120
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.0044a4f0
mov esp, ebp
pop ebp
ret 4