Function at 0x40f690
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffe36
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xc0], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
push dword [edi + 0x6b0]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb8], eax
call fcn.004899cc
mov dword [ebp - 4], 0
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x6f0]
call fcn.0048a3be
push 0x48
call fcn.00488616
mov esi, eax
mov dword [ebp - 0xa4], eax
add esp, 4
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40f745
mov ecx, esi
call fcn.0043ed60
mov dword [esi], vtable.PLWinBmpEx.0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
jmp 0x40f74d
xor esi, esi
mov dword [ebp - 0xa4], esi
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0
push eax
push 0
push 0
mov dword [edi + 0x8b0], esi
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov esi, dword [esi]
push 0x20
push dword [ebp - 0xa8]
mov esi, dword [esi + 0xc]
mov ecx, esi
push ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0xa4]
call esi
push dword [edi + 0x190]
mov ecx, dword [edi + 0x8b0]
mov edx, ebx
push dword [ebp - 0xa8]
call fcn.00407660
lea eax, [edi + 0x6f0]
add esp, 8
test eax, eax
jne 0x40f7be
xor esi, esi
jmp 0x40f7c1
mov esi, dword [eax + 4]
mov ecx, dword [edi + 0x8b0]
call fcn.0043f0f0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x60]
mov dword [edi + 0x948], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x6d0]
call fcn.0048a3be
push 0x48
call fcn.00488616
mov esi, eax
mov dword [ebp - 0xa4], eax
add esp, 4
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x40f82c
mov ecx, esi
call fcn.0043ed60
mov dword [esi], vtable.PLWinBmpEx.0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
jmp 0x40f834
xor esi, esi
mov dword [ebp - 0xa4], esi
lea eax, [ebp - 0xec]
mov byte [ebp - 4], 0
push eax
push 0
push 0
mov dword [edi + 0x8ac], esi
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov esi, dword [esi]
push 0x20
push dword [ebp - 0xa8]
mov esi, dword [esi + 0xc]
mov ecx, esi
push ebx
call dword [0x613aec]
mov ecx, dword [ebp - 0xa4]
call esi
lea eax, [edi + 0x6d0]
test eax, eax
jne 0x40f889
xor esi, esi
jmp 0x40f88c
mov esi, dword [eax + 4]
mov ecx, dword [edi + 0x8ac]
call fcn.0043f0f0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [ebp - 0x60]
mov dword [edi + 0x93c], eax
push dword [ebp - 0xa8]
push ebx
push 0
push 0
push dword [edi + 0x6d4]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x700]
call fcn.0048a3be
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push 0xc
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
imul esi, ebx
cmp esi, 8
jg 0x40f925
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateHalftonePalette]
mov ebx, dword [ebp - 0xc0]
mov dword [ebx + 0x8a8], eax
jmp 0x40f92b
mov ebx, dword [ebp - 0xc0]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebx + 0x710]
call fcn.0048a3be
push 0x48
call fcn.00488616
mov esi, eax
mov dword [ebp - 0xa4], eax
add esp, 4
mov dword [ebp - 0xb0], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x40f97d
mov ecx, esi
call fcn.0043ed60
mov dword [esi], vtable.PLWinBmpEx.0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
jmp 0x40f985
xor esi, esi
mov dword [ebp - 0xa4], esi
mov edi, dword [ebp - 0xc4]
lea eax, [ebp - 0xcc]
push eax
mov byte [ebp - 4], 0
push 0
push 0
mov dword [ebx + 0x8b4], esi
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov esi, dword [esi]
push 0x20
push dword [ebp - 0xa8]
mov esi, dword [esi + 0xc]
mov ecx, esi
push edi
call dword [0x613aec]
mov ecx, dword [ebp - 0xa4]
call esi
mov eax, dword [ebp - 0xa8]
xor esi, esi
mov ecx, dword [ebx + 0x8b4]
mov dword [ebp - 0xa4], ecx
test eax, eax
jle 0x40fa35
mov ebx, ecx
lea esp, [esp]
xor edx, edx
test edi, edi
jle 0x40fa24
mov word [ebp - 0xa3], dx
mov byte [ebp - 0xa4], dl
mov byte [ebp - 0xa1], 0xff
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebx + 0x20]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jl 0x40fa10
mov eax, dword [ebp - 0xa8]
inc esi
cmp esi, eax
jl 0x40f9f0
mov ebx, dword [ebp - 0xc0]
mov ecx, dword [ebx + 0x8b4]
lea esi, [ebx + 0x710]
test esi, esi
je 0x40fa42
mov esi, dword [esi + 4]
call fcn.0043f0f0
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebx + 0x940], eax
cmp dword [0x6a95ac], 3
jne 0x40fa93
push dword [ebx + 0x190]
mov esi, dword [ebp - 0xa8]
mov edx, edi
mov ecx, dword [ebx + 0x8ac]
push esi
call fcn.00407660
add esp, 8
lea ecx, [ebx + 0x788]
push 0
push dword [ebx + 0x8ac]
call fcn.00440ea0
jmp 0x40fbd1
lea ecx, [ebp - 0xdc]
call fcn.004899b8
mov byte [ebp - 4], 4
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebp - 0xdc]
call fcn.0048a3be
push 8
call fcn.00488616
add esp, 4
mov esi, eax
mov dword [ebp - 0xb0], esi
push dword [ebp - 0xa8]
push edi
test esi, esi
je 0x40fb07
mov dword [esi + 4], 0
mov dword [esi], vtable.CBitmap.0
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.0048a400
mov dword [ebp - 0xac], esi
test esi, esi
je 0x40fb24
mov eax, dword [esi + 4]
mov dword [ebp - 0xac], esi
jmp 0x40fb26
push dword [ebp - 0x60]
mov dword [ebp - 0xac], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
xor ecx, ecx
call fcn.0048a400
xor esi, esi
xor eax, eax
push eax
push dword [ebp - 0xd8]
call fcn.0048acec
push 0xcc0020
push 0
push 0
push dword [ebp - 0x60]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0xa8]
push edi
push 0
push 0
push dword [ebp - 0xd8]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40fb68
mov eax, dword [eax + 4]
push eax
push dword [ebp - 0xd8]
call fcn.0048acec
lea ecx, [ebp - 0xdc]
call fcn.0048a56c
cmp dword [ebp - 0xac], 0
lea ecx, [ebx + 0x788]
jne 0x40fb97
push 0
call fcn.00442780
jmp 0x40fbbc
push dword [esi + 4]
call fcn.00442780
mov ecx, dword [ebp - 0xac]
push 1
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, dword [ebp - 0xac]
call esi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0
call fcn.00489b1f
mov esi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x6a0]
mov eax, dword [eax + 0x14]
cmp dword [eax - 0xc], 0
je 0x40fd09
push 0x3c
lea eax, [ebx + 0x8d4]
push 0
push eax
call fcn.005d7470
mov ecx, dword [ebx + 0x6a4]
add esp, 0xc
cmp dword [0x6a95ac], 3
mov dword [ebp - 0xac], ecx
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0xb0], eax
jne 0x40fc66
fild dword [ebp - 0xb0]
fstp qword [ebp - 0xb4]
fld qword [ebp - 0xb4]
fdiv qword [0x676990]
fst qword [ebp - 0xb4]
fld1
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40fc5a
fstp st(0)
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0x3ff00000
fld qword [ebp - 0xb4]
call fcn.005d5370
wait
mov ecx, dword [ebp - 0xac]
mov dword [ebx + 0x8d4], eax
movzx eax, byte [ecx + 0x18]
mov byte [ebx + 0x8eb], al
movzx eax, byte [ecx + 0x14]
and al, 1
mov byte [ebx + 0x8e8], al
movzx eax, byte [ecx + 0x14]
and al, 4
mov byte [ebx + 0x8e9], al
movzx eax, byte [ecx + 0x14]
and al, 8
mov byte [ebx + 0x8ea], al
mov eax, dword [ecx + 0x14]
and al, 2
mov byte [ebx + 0x8ee], 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x12c
add eax, 0x190
mov dword [ebx + 0x8e4], eax
mov eax, dword [ebx + 0x6a0]
push dword [eax + 0x18]
lea eax, [ebx + 0x8f0]
push 0x20
push eax
call fcn.005e33e1
add esp, 0xc
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [ebx + 0x6e0]
call fcn.0048a3be
mov ecx, ebx
call fcn.00410f70
push esi
mov dword [ebx + 0x8c4], eax
mov ecx, ebx
push edi
lea eax, [ebx + 0x6d0]
push eax
call fcn.00410a20
cmp dword [0x6a95ac], 3
jne 0x40fd53
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
push 0xa
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
fild dword [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
fstp qword [ebp - 0xbc]
fld qword [ebp - 0xbc]
fild dword [ebp - 0xb0]
fstp qword [ebp - 0xbc]
fdiv qword [ebp - 0xbc]
fstp qword [ebx + 0x260]
mov eax, dword [ebx + 0x6a4]
cmp dword [eax + 4], 0
jne 0x40feda
push 0x144
call fcn.00488616
mov edi, eax
add esp, 4
mov dword [ebp - 0xb0], edi
test edi, edi
je 0x40fed2
mov byte [ebp - 4], 6
lea ecx, [edi + 4]
mov dword [edi], vtable.CSwInfo.0
call fcn.0049727a
mov byte [ebp - 4], 7
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.00485933
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x410121
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, dword [ebp - 0xb8]
call esi
add eax, 0x10
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 8
call fcn.00489230
lea ecx, [edi + 0x84]
mov byte [ebp - 4], 9
call fcn.004899b8
mov eax, dword [ebp - 0xc4]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xa8]
mov dword [edi + 0x128], 0
mov dword [edi + 0x12c], 0
mov dword [edi + 0x140], 0xa
mov dword [edi + 0x1c], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0x58], 1
mov dword [edi + 0x60], 0
mov dword [edi + 0x74], 2
mov dword [edi + 0x78], 0x1b58
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 1
mov dword [edi + 0x6c], 0
mov dword [edi + 0x98], 0
mov byte [edi + 0x7c], 0
mov dword [edi + 0x80], 0x46
mov dword [edi + 0xa0], 0xffffff
mov dword [edi + 0xa4], 0
jmp 0x40fed4
xor edi, edi
mov byte [ebp - 4], 0
mov dword [ebx], edi
mov esi, dword [ebx]
test esi, esi
je 0x4100f1
push 0x3c
lea eax, [ebp - 0xa0]
push 0
push eax
call fcn.005d7470
fld qword [ebx + 0x260]
add esp, 0xc
mov ecx, dword [0x6a95ac]
fld1
sub ecx, 3
fucompp
mov byte [ebp - 0x86], 4
neg ecx
fnstsw ax
sbb ecx, ecx
and ecx, 0x11
add ecx, 2
mov dword [ebp - 0xa0], ecx
test ah, 0x44
jnp 0x40ff99
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0xb8], eax
cdq
idiv ecx
fild dword [ebp - 0xb8]
mov edi, eax
fstp qword [ebp - 0xbc]
fld qword [ebp - 0xbc]
fmul qword [ebx + 0x260]
call fcn.005d5370
wait
cmp eax, 2
jge 0x40ff62
mov eax, 2
imul edi, eax
mov dword [ebp - 0xa0], edi
fild dword [esi + 0x80]
fstp qword [ebp - 0xcc]
fld qword [ebp - 0xcc]
fmul qword [ebx + 0x260]
call fcn.005d5370
wait
cmp eax, 0xa
jge 0x40ff93
mov eax, 0xa
mov dword [esi + 0x80], eax
push str.Arial_Bold
lea eax, [ebp - 0x84]
push 0x20
push eax
call fcn.005e33e1
add esp, 0xc
call fcn.00485933
mov edi, eax
test edi, edi
je 0x41012b
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0xac], eax
mov eax, 0x674b38
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xac]
test eax, 0xffff0000
jne 0x40fff9
movzx eax, ax
push eax
call fcn.004030c0
jmp 0x410005
push 0x66
push 0x674b38
call fcn.004038a0
mov byte [ebp - 4], 0xb
xor esi, esi
mov eax, dword [ebp - 0xac]
cmp dword [eax - 0xc], esi
jle 0x410078
test esi, esi
js 0x410117
mov edi, dword [eax - 0xc]
cmp esi, edi
jg 0x410117
mov bl, byte [esi + eax]
shr bl, 1
add bl, 0xb
cmp esi, edi
jge 0x410117
cmp dword [eax - 4], 1
jle 0x410051
push edi
lea ecx, [ebp - 0xac]
call fcn.004039f0
mov eax, dword [ebp - 0xac]
mov byte [esi + eax], bl
test edi, edi
js 0x410117
cmp edi, dword [eax - 8]
jg 0x410117
mov dword [eax - 0xc], edi
inc esi
mov byte [edi + eax], 0
cmp esi, dword [eax - 0xc]
jl 0x410016
mov ebx, dword [ebp - 0xc0]
push 1
lea ecx, [ebp - 0xa0]
push ecx
push dword [ebx + 0x688]
lea edi, [eax - 0x10]
push ecx
mov esi, esp
mov dword [ebp - 0xb8], esi
push edi
mov dword [ebp - 0xb8], edi
call fcn.00403750
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebx + 0x6d0]
mov ecx, dword [ebx]
push eax
call fcn.00434b20
mov esi, dword [ebx]
mov dword [esi + 0x6c], 1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esi + 0x70], eax
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4100f1
mov edi, dword [edi]
push dword [ebp - 0xb8]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
lea ecx, [ebp - 0x64]
call fcn.00489b6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
push 0x80004005
call fcn.00402cb0
int3