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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x29c
mov ebx, edi
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebx]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov dword [ebp - 0x200], 0x158
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x200]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x29
mov eax, dword [sym.imp.USER32.dll_SystemParametersInfoA]
call eax
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0xe8]
movups xmmword [ebp - 0x6c], xmm0
movdqu xmm0, xmmword [ebp - 0xd8]
movups xmmword [ebp - 0x5c], xmm0
movdqu xmm0, xmmword [ebp - 0xc8]
movups xmmword [ebp - 0x4c], xmm0
movdqu xmm0, xmmword [ebp - 0xbc]
movups xmmword [ebp - 0x40], xmm0
movdqu xmm0, xmmword [ebp - 0x1e8]
movups xmmword [ebp - 0xa8], xmm0
movdqu xmm0, xmmword [ebp - 0x1d8]
movups xmmword [ebp - 0x98], xmm0
movdqu xmm0, xmmword [ebp - 0x1c8]
movups xmmword [ebp - 0x88], xmm0
movdqu xmm0, xmmword [ebp - 0x1bc]
movups xmmword [ebp - 0x7c], xmm0
mov byte [ebp - 0x52], 5
mov byte [ebp - 0x8e], 5
mov dword [ebp - 0x98], 0x2bc
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadBitmapW]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x406ed6
mov eax, 2
jmp 0x4077af
mov eax, dword [ebp - 0x23c]
lea edx, [eax + 0x74]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x18
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_GetObjectA]
call eax
sub esp, 0xc
test eax, eax
sete al
test al, al
je 0x406f14
mov eax, 3
jmp 0x4077af
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MonitorFromWindow]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x228], 0x28
lea eax, [ebp - 0x228]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMonitorInfoA]
call eax
sub esp, 8
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x34]
lea edx, [ebp - 0x238]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowRect]
call eax
sub esp, 8
mov eax, dword [ebp - 0x20c]
mov edx, dword [ebp - 0x214]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x78]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
neg eax
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x23c]
mov dword [eax], edx
mov eax, dword [ebp - 0x208]
mov edx, dword [ebp - 0x210]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x7c]
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
neg eax
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x23c]
mov dword [eax + 4], edx
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_GetDC]
call eax
sub esp, 4
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x48], eax
movzx eax, byte [ebp - 0x51]
movzx eax, al
mov dword [ebp - 0x240], eax
movzx eax, byte [ebp - 0x52]
movzx edi, al
mov dword [ebp - 0x244], edi
movzx eax, byte [ebp - 0x53]
movzx esi, al
mov dword [ebp - 0x248], esi
movzx eax, byte [ebp - 0x54]
movzx ecx, al
mov dword [ebp - 0x24c], ecx
movzx eax, byte [ebp - 0x55]
movzx edx, al
mov dword [ebp - 0x250], edx
movzx eax, byte [ebp - 0x56]
movzx edi, al
mov dword [ebp - 0x254], edi
movzx eax, byte [ebp - 0x57]
movzx esi, al
mov dword [ebp - 0x258], esi
movzx eax, byte [ebp - 0x58]
movzx edx, al
mov dword [ebp - 0x25c], edx
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x260], edi
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x264], esi
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], 0x5a
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call eax
sub esp, 8
mov dword [esp + 8], 0x48
mov dword [esp + 4], eax
mov dword [esp], 9
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
call eax
sub esp, 0xc
neg eax
mov edx, eax
lea eax, [ebp - 0x6c]
add eax, 0x1c
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 0x28], eax
mov ecx, dword [ebp - 0x24c]
mov dword [esp + 0x24], ecx
mov eax, dword [ebp - 0x250]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x258]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edx
mov eax, dword [sym.imp.GDI32.dll_CreateFontA]
call eax
sub esp, 0x38
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x68], eax
movzx eax, byte [ebp - 0x8d]
movzx eax, al
mov dword [ebp - 0x240], eax
movzx eax, byte [ebp - 0x8e]
movzx ecx, al
mov dword [ebp - 0x244], ecx
movzx eax, byte [ebp - 0x8f]
movzx edi, al
mov dword [ebp - 0x248], edi
movzx eax, byte [ebp - 0x90]
movzx esi, al
mov dword [ebp - 0x24c], esi
movzx eax, byte [ebp - 0x91]
movzx edx, al
mov dword [ebp - 0x250], edx
movzx eax, byte [ebp - 0x92]
movzx edi, al
mov dword [ebp - 0x254], edi
movzx eax, byte [ebp - 0x93]
movzx esi, al
mov dword [ebp - 0x258], esi
movzx eax, byte [ebp - 0x94]
movzx edx, al
mov dword [ebp - 0x25c], edx
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x260], ecx
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0x264], edi
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], 0x5a
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call eax
sub esp, 8
mov dword [esp + 8], 0x48
mov dword [esp + 4], eax
mov dword [esp], 9
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
call eax
sub esp, 0xc
neg eax
mov edx, eax
lea eax, [ebp - 0xa8]
add eax, 0x1c
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x30], eax
mov ecx, dword [ebp - 0x244]
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp - 0x248]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x250]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x258]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x260]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0x264]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edx
mov eax, dword [sym.imp.GDI32.dll_CreateFontA]
call eax
sub esp, 0x38
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x6c], eax
movzx eax, byte [ebp - 0x8d]
movzx eax, al
mov dword [ebp - 0x240], eax
movzx eax, byte [ebp - 0x8e]
movzx esi, al
mov dword [ebp - 0x244], esi
movzx eax, byte [ebp - 0x8f]
movzx edi, al
mov dword [ebp - 0x248], edi
movzx eax, byte [ebp - 0x90]
movzx ecx, al
mov dword [ebp - 0x24c], ecx
movzx eax, byte [ebp - 0x91]
movzx edx, al
mov dword [ebp - 0x250], edx
movzx eax, byte [ebp - 0x92]
movzx esi, al
mov dword [ebp - 0x254], esi
movzx eax, byte [ebp - 0x93]
movzx edi, al
mov dword [ebp - 0x258], edi
movzx eax, byte [ebp - 0x94]
movzx edx, al
mov dword [ebp - 0x25c], edx
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x260], esi
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0x264], edi
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], 0x5a
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call eax
sub esp, 8
mov dword [esp + 8], 0x48
mov dword [esp + 4], eax
mov dword [esp], 0xc
mov eax, dword [sym.imp.KERNEL32.dll_MulDiv]
call eax
sub esp, 0xc
neg eax
mov edx, eax
lea eax, [ebp - 0xa8]
add eax, 0x1c
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x240]
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 0x28], eax
mov ecx, dword [ebp - 0x24c]
mov dword [esp + 0x24], ecx
mov eax, dword [ebp - 0x250]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x254]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x258]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x25c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x260]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x264]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], edx
mov eax, dword [sym.imp.GDI32.dll_CreateFontA]
call eax
sub esp, 0x38
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x70], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call eax
sub esp, 4
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x50], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call eax
sub esp, 4
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call eax
sub esp, 4
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x54], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadBitmapW]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x60]
test eax, eax
jne 0x4074c7
mov eax, 2
jmp 0x4077af
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x48]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
call eax
sub esp, 0xc
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x60]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x54]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x54]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SelectObject]
call eax
sub esp, 8
mov edx, dword [ebp - 0x23c]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x54]
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkMode]
call eax
sub esp, 8
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x8c], 0x28
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x90], edx
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x94], edx
mov eax, dword [ebp - 0x23c]
mov word [eax + 0x98], 1
mov eax, dword [ebp - 0x23c]
mov word [eax + 0x9a], 0x20
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0x9c], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xa0], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xa4], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xa8], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xac], 0
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xb0], 0
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0x23c]
movzx eax, word [eax + 0x9a]
movzx eax, ax
imul eax, edx
add eax, 0x1f
lea edx, [eax + 0x1f]
test eax, eax
cmovs eax, edx
sar eax, 5
mov edx, eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x7c]
imul eax, edx
shl eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00504590
mov edx, eax
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xb4], edx
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00504590
mov edx, eax
mov eax, dword [ebp - 0x23c]
mov dword [eax + 0xb8], edx
mov eax, dword [ebp - 0x23c]
lea ebx, [eax + 0x8c]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x7c]
mov esi, eax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_GetDIBits]
call eax
sub esp, 0x1c
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0xb4]
add eax, 3
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 0xb8]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0x30], eax
jmp 0x4077a2
mov eax, dword [ebp - 0x1c]
movzx edx, byte [eax]
mov eax, dword [ebp - 0x20]
mov byte [eax], dl
add dword [ebp - 0x20], 1
add dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x30]
jb 0x40778f
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x14