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

Disassembly:
sub esp, 0xe0
mov eax, dword [0x421c40]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push ebx
push ebp
mov ebp, dword [esp + 0xec]
xor ebx, ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0x47
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
call esi
push 0xf
mov dword [esp + 0x3c], eax
call esi
add eax, 2
mov dword [esp + 0x2c], eax
sar eax, 1
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x40164c
imul ecx, eax, 0xac
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [esp + 0x4c], esi
test esi, esi
je 0x40164c
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push 0x11
mov dword [esp + 0x18], ebp
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x1c], eax
lea ebp, [esi + 0x2c]
mov eax, ebx
mov dword [esp + 0x10], eax
mov esi, 0x417390
lea edi, [ebp - 0x2c]
lea ecx, [esp + 0x60]
push ecx
push 1
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x70], 0x30
mov dword [esp + 0x98], 0x40
mov dword [esp + 0x74], 0x10
mov dword [esp + 0x78], ebx
mov dword [esp + 0x94], ebp
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x68]
mov dword [ebp - 0x18], eax
test dword [esp + 0x68], 0x800
mov eax, dword [esp + 0x2c]
cmovne eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
push 9
push ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
lea eax, [esp + 0x3c]
push eax
test esi, esi
je 0x4013fc
mov ecx, esi
sub ecx, ebp
sar ecx, 1
push ecx
push ebp
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x20], eax
cmovg eax, dword [esp + 0x20]
add esi, 2
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x28], eax
cmovg eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x24], eax
cmovg eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x401426
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebp
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
cmovg eax, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x10]
add ebp, 0xac
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x48]
jl 0x401309
mov eax, dword [esp + 0x28]
push dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x18]
cmp ecx, eax
push edi
cmovg eax, ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x48
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x10
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
lea eax, [esp + 0x90]
push 0x5c
push ebx
push eax
neg esi
call fcn.004081e0
add esp, 0xc
mov dword [esp + 0x90], esi
mov eax, 0x384
mov dword [esp + 0xa0], 0x2bc
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0xac]
push str.Tahoma
push eax
mov byte [esp + 0xaf], 1
mov byte [esp + 0xb2], 5
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 4
pop ebp
sub ebp, esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x14], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [esp + 0x18]
mov ebx, eax
push esi
push ebp
push edi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov ebp, eax
xor eax, eax
push eax
push eax
push edi
mov edi, dword [esp + 0x20]
push esi
push edi
push eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push esi
push edi
push ebx
call fcn.00401c31
push dword [esp + 0x34]
xorps xmm0, xmm0
mov dword [esp + 0x5c], edi
sub esp, 0x10
mov dword [esp + 0x70], esi
mov ebx, eax
movlpd qword [esp + 0x64], xmm0
lea esi, [esp + 0x64]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
push esi
push edi
call fcn.00401d1d
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call edi
push dword [esp + 0x14]
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
jne 0x4015ae
cmp dword [esp + 0x34], ebp
jne 0x4015ae
push esi
call edi
mov edi, ebp
mov eax, ebp
mov ecx, ebp
jmp 0x4015bd
mov edi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
cmovne eax, dword [esp + 0x10]
mov ecx, eax
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x2c]
add edx, 9
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], edx
add esi, 0x1c
mov ebx, eax
sub eax, ebx
mov dword [esi - 0xc], edi
sub ebx, dword [esi + 4]
test dword [esi - 8], 0x800
mov dword [esi - 4], eax
push 0
pop eax
cmove eax, edx
mov dword [esi], ecx
mov dword [esi + 8], eax
lea eax, [esi - 0x1c]
mov dword [esi + 0xc], edx
mov dword [esp + 0x80], eax
lea eax, [esp + 0x60]
push eax
push 1
push ebp
push dword [esp + 0x50]
mov dword [esp + 0x74], 0x30
mov dword [esp + 0x78], 0x100
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [esp + 0x18]
lea esi, [esi + 0xac]
mov ecx, dword [esp + 0x10]
inc ebp
mov edx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x48]
jl 0x4015e2
xor eax, eax
inc eax
jmp 0x40164e
xor eax, eax
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407258
add esp, 0xe0
ret 8