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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x58a110]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
xor esi, esi
cmp dword [0x5925c0], esi
jne 0x40b5eb
mov dword [0x5925c0], 1
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0050e12a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041354a
mov ecx, dword [edi + 0x20]
mov ebx, eax
push ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40b9e0
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ecx, dword [edi + 0x20]
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x20]
lea edx, [esp + 0x54]
push edx
push eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0x8c]
cmp eax, esi
jne 0x40b744
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
mov dword [edi + 0x8c], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [edi + 0x8c]
push eax
push ecx
mov dword [edi + 0x90], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40b733
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
call fcn.0040f996
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 0xcc0020
push eax
push ecx
push ebx
sub edx, eax
mov eax, dword [esp + 0x30]
push edx
sub eax, ecx
mov ecx, dword [edi + 0x8c]
push eax
push esi
push esi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 8]
mov eax, dword [edi + 0x8c]
push edx
push eax
jmp 0x40b7fc
mov ecx, dword [edi + 0x90]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x40b7f0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x38]
push edx
call fcn.0040f996
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [edi + 0x8c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push 0xcc0020
push esi
push esi
push edx
mov edx, dword [esp + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 8]
mov ecx, dword [edi + 0x8c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x74]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [edi + 0x94], esi
je 0x40b9d9
cmp dword [edi + 0x98], esi
je 0x40b9d9
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.0040f9d7
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
call fcn.0040f996
mov eax, dword [edi + 0x94]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
lea ebx, [ebx]
mov edx, dword [esp + 8]
cmp edx, dword [edi + 0x9c]
je 0x40b9c9
mov eax, dword [edi + 0x74]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [edi + 0x94]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 8]
push 0x120
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
add eax, 8
push esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push eax
mov byte [ecx], 0
call fcn.00407270
lea esi, [esp + 0x60]
call fcn.004027b0
mov esi, 8
add esp, 0x1c
cmp dword [eax + 0x14], esi
jb 0x40b903
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [esp + 0x4c], esi
jb 0x40b91e
mov eax, dword [esp + 0x38]
push eax
call fcn.0040dabc
add esp, 4
mov ecx, dword [edi + 0x78]
add dword [esp + 0x1c], 0xe
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 0x98]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x120
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push 0
add eax, 0x24
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00407270
lea esi, [esp + 0x60]
call fcn.004027b0
mov esi, 8
add esp, 0x1c
cmp dword [eax + 0x14], esi
jb 0x40b98b
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [esp + 0x4c], esi
jb 0x40b9a6
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040dabc
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
add dword [esp + 0x1c], 0x11
mov ecx, dword [edx]
inc eax
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
cmp eax, 7
jl 0x40b890
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40b9d9
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x64]
pop esi
pop ebx
xor ecx, esp
call fcn.0050e12a
mov esp, ebp
pop ebp
ret