Function at 0x417360
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x447150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x447d94]
push ebx
mov ebx, ecx
mov dword [ebp - 0x60], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
mov dword [ebp - 0x6c], esi
test eax, eax
je 0x417394
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4538f0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x45349c]
cmp eax, dword [ecx + 4]
jg 0x417608
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x48]
mov esi, eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x58], esi
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [ebp - 0x68], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 8
mov dword [ebp - 0x64], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x417411
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push dword [ebp - 0x58]
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi], eax
jmp 0x417413
xor esi, esi
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 0
push 0
push dword [0x4470e4]
push dword [esi]
call sub.gdiplus.dll_GdipFillRectangleI
test eax, eax
je 0x417431
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x4c]
push 0x28
add eax, 0xfffffffe
push eax
push 0x28
push 1
push dword [0x4534a0]
push dword [esi]
call sub.gdiplus.dll_GdipDrawLineI
test eax, eax
je 0x417452
mov dword [esi + 4], eax
push dword [ebp - 0x60]
mov eax, dword [ebx + 0x230]
lea ecx, [ebx + 0x230]
push esi
call dword [eax + 0x14]
push dword [ebp - 0x60]
mov eax, dword [ebx + 0x3dc]
lea ecx, [ebx + 0x3dc]
push esi
call dword [eax + 0x14]
push dword [ebp - 0x60]
mov eax, dword [ebx + 0x588]
lea ecx, [ebx + 0x588]
push esi
call dword [eax + 0x14]
cmp dword [ebx + 0x7c], 0
je 0x4174c8
push dword [ebp - 0x60]
mov eax, dword [ebx + 0x84]
lea ecx, [ebx + 0x84]
push esi
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
dec ecx
push ecx
dec eax
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [0x453494]
push dword [esi]
call sub.gdiplus.dll_GdipDrawRectangleI
test eax, eax
je 0x4174c8
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebx + 0x6c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
call ebx
push 0xffffff
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
lea eax, [ebp - 0x44]
push 0x43d1f8
push eax
call fcn.0040d400
lea ecx, [ebp - 0x44]
add esp, 8
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417530
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push eax
push 0xc
push 0x33
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
push 0x625d57
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 6
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 0
push 0
push str.TOOLTIP
push str.IDM_MAP_OPEN
push 0x40
lea eax, [ebp - 0x44]
mov ecx, 0x4482b8
push eax
call fcn.00402e70
lea ecx, [ebp - 0x44]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417582
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push eax
mov eax, dword [ebp - 0x48]
cdq
sub eax, edx
sar eax, 1
add eax, 0x3c
push eax
mov eax, dword [ebp - 0x4c]
cdq
sub eax, edx
sar eax, 1
push eax
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [ebp - 0x5c]
push edi
call ebx
push 2
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4175c6
push eax
push edi
call ebx
push dword [ebp - 0x64]
push edi
call ebx
push dword [ebp - 0x68]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x58]
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi]
call sub.gdiplus.dll_GdipDeleteGraphics
push esi
call sub.gdiplus.dll_GdipFree
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004271bb
mov esp, ebp
pop ebp
ret 4
push 0x45349c
call fcn.004277cf
add esp, 4
cmp dword [0x45349c], 0xffffffff
jne 0x4173b4
push 0x453494
push 0
push ecx
mov dword [esp], 0x3f800000
push 0xff000000
call sub.gdiplus.dll_GdipCreatePen1
push 0x43bd40
mov dword [0x453498], eax
call fcn.00427682
add esp, 4
push 0x4534a0
push 0
push ecx
mov dword [esp], 0x3f800000
push 0xff575d62
call sub.gdiplus.dll_GdipCreatePen1
push 0x43bd70
mov dword [0x4534a4], eax
call fcn.00427682
add esp, 4
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push 0xff3a4147
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [0x4470e8], eax
mov eax, dword [ebp - 0x58]
push 0x43bd50
mov dword [0x4470e4], eax
call fcn.00427682
push 0x45349c
call fcn.00427790
add esp, 8
jmp 0x4173b4