Function at 0x401300
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xf4
mov eax, dword [0x422c40]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xfc]
push ebx
mov ebx, dword [esp + 0xfc]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebp, ebp
push edi
mov dword [esp + 0x3c], eax
xor eax, eax
push 0x47
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
call esi
push 0xf
mov dword [esp + 0x4c], eax
call esi
add eax, 2
mov dword [esp + 0x1c], eax
sar eax, 1
push ebx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x40180c
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 edi, eax
mov dword [esp + 0x50], edi
test edi, edi
je 0x40180c
push ebp
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x11
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor ebx, ebx
mov dword [esp + 0x28], eax
add edi, 0x2c
nop
movups xmm0, xmmword [0x418390]
lea eax, [esp + 0x54]
push eax
push 1
movups xmmword [edi - 0x2c], xmm0
push ebx
push dword [esp + 0x4c]
mov dword [esp + 0x64], 0x30
mov dword [esp + 0x8c], 0x40
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x6c], 0
mov dword [esp + 0x88], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov eax, dword [esp + 0x5c]
mov dword [edi - 0x18], eax
test dword [esp + 0x5c], 0x800
mov eax, dword [esp + 0x1c]
cmovne eax, dword [esp + 0x20]
push 9
push edi
mov dword [edi - 0xc], eax
add ebp, eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov dword [esp + 0x34], eax
test eax, eax
je 0x4014bd
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
sub ecx, edi
sar ecx, 1
push ecx
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
mov esi, dword [esp + 0x34]
cmovg eax, dword [esp + 0x10]
add esi, 2
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x18], eax
cmovg eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
cmovg eax, dword [esp + 0x14]
mov edx, eax
mov dword [esp + 0x14], edx
jmp 0x4014e9
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
cmovg eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x10], eax
inc ebx
add edi, 0xac
cmp ebx, dword [esp + 0x44]
jl 0x4013c0
mov eax, dword [esp + 0x18]
push dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x24], ebp
cmp edx, eax
push esi
cmovg eax, edx
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x48
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0x10
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
lea eax, [esp + 0x84]
push 0x5c
push 0
push eax
neg esi
call fcn.004091f0
add esp, 0xc
mov dword [esp + 0x84], esi
lea eax, [esp + 0xa0]
mov dword [esp + 0x8c], 0x384
mov dword [esp + 0x90], 0x384
mov dword [esp + 0x94], 0x2bc
push str.Tahoma
push eax
mov byte [esp + 0xa3], 1
mov byte [esp + 0xa6], 5
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [esp + 0x24]
mov edi, 4
sub edi, esi
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push edi
mov esi, eax
push ebx
mov dword [esp + 0x24], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push ebx
push ebp
push edi
push 0
push 0
push esi
mov dword [esp + 0x4c], eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x4183a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x401603
mov dword [esp + 0x14], eax
jmp 0x4016b1
push str.GradientFill
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x423410], eax
test eax, eax
jne 0x40162c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x14], 0
jmp 0x4016b1
mov ecx, dword [esp + 0x1c]
push 1
push 1
mov dword [esp + 0xf8], ecx
lea ecx, [esp + 0x3c]
push ecx
push 2
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], 0
push ecx
push esi
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0xb9006400
mov dword [esp + 0x104], 0xff00
mov dword [esp + 0x10c], ebp
mov dword [esp + 0x110], 0x45000000
mov dword [esp + 0x114], 0x7d00
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x14], eax
mov ebp, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push esi
call ebp
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xf0f0f0
push esi
call ebx
push dword [esp + 0x10]
mov edi, eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x3c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x40]
add ecx, 0xfffffffc
push ecx
push 0xfffffffffffffffe
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_TextOutW]
push esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call ebx
push 2
push esi
call ebp
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
mov ebx, dword [esp + 0x28]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
push dword [esp + 0x24]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x14], 0
jne 0x40176d
cmp dword [esp + 0x34], 0
jne 0x40176d
push esi
call edi
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
jmp 0x40177e
xor eax, eax
cmp dword [esp + 0x10], eax
cmovne eax, dword [esp + 0x1c]
mov edx, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x48]
xor edi, edi
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
add ebp, 9
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x10]
add ebp, eax
mov eax, dword [esp + 0x20]
add esi, 0x1c
mov ebx, eax
sub eax, ebx
mov dword [esi - 0xc], ecx
sub ebx, dword [esi + 4]
test dword [esi - 8], 0x800
mov dword [esi - 4], eax
mov eax, 0
cmove eax, ebp
mov dword [esi], edx
mov dword [esi + 8], eax
lea eax, [esi - 0x1c]
mov dword [esi + 0xc], ebp
mov dword [esp + 0x74], eax
lea eax, [esp + 0x54]
push eax
push 1
push edi
push dword [esp + 0x4c]
mov dword [esp + 0x68], 0x30
mov dword [esp + 0x6c], 0x100
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, dword [esp + 0x20]
lea esi, [esi + 0xac]
mov ecx, dword [esp + 0x10]
inc edi
mov edx, dword [esp + 0x1c]
cmp edi, dword [esp + 0x44]
jl 0x4017a1
mov eax, 1
jmp 0x40180e
xor eax, eax
mov ecx, dword [esp + 0x100]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004082ae
add esp, 0xf4
ret 8