Function at 0x40cf00
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
push eax
call fcn.0043013e
mov edi, eax
mov ecx, dword [edi + 0x1c]
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call fcn.0043951d
lea edx, [esp + 0x60]
mov ebp, eax
mov eax, dword [edi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x140]
mov edx, dword [esi + 0xfc]
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x64]
sete cl
sub eax, edx
push eax
push 0
push 0
mov edi, ecx
mov ecx, ebp
call fcn.00438ee4
mov ebx, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
push edi
sub ebx, edx
push ebx
push 0
sub eax, ecx
push 0
push ebp
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.0040b950
mov eax, dword [esi + 0x104]
mov ecx, dword [esp + 0x14]
push edi
push ebx
push 0
sub ecx, eax
push ecx
push ebp
mov ecx, esi
call fcn.0040bbf0
mov edx, dword [esi + 0x104]
mov ecx, dword [esi + 0x100]
mov eax, dword [esp + 0x14]
push edi
sub eax, edx
mov edx, dword [esi + 0x108]
sub eax, ecx
push eax
sub ebx, edx
push ebx
push ecx
push ebp
mov ecx, esi
call fcn.0040b6b0
push 0
mov ecx, ebp
call fcn.00439283
lea ecx, [esp + 0x50]
call fcn.0043908f
mov dword [esp + 0x94], 0
lea ecx, [esp + 0x48]
call fcn.004070a0
test ebp, ebp
mov byte [esp + 0x94], 1
jne 0x40d01d
xor eax, eax
jmp 0x40d020
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x54]
call fcn.0043952b
mov ecx, dword [esi + 0xfc]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
mov edx, dword [ebp + 4]
push ecx
sub eax, ebx
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x4c]
call fcn.00439828
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.004398b1
mov ecx, dword [esi + 0x104]
mov edx, dword [esp + 0x68]
sub edx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x100]
sub edx, eax
push edi
sub edx, ecx
inc edx
push edx
push 0
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0040b410
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.GDI32.dll_GetObjectA]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], ecx
push 0x18
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], ecx
call ebx
mov ecx, dword [esp + 0x24]
push edi
push ecx
push 0
push 0
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.0040b950
mov edx, dword [esi + 0x2c]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x2c], eax
push 0x18
mov dword [esp + 0x34], eax
push edx
mov dword [esp + 0x3c], eax
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov edx, dword [esi + 0x104]
push edi
push eax
push 0
mov eax, dword [esp + 0x6c]
sub ecx, edx
sub ecx, eax
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.0040bbf0
mov ebx, vtable.CRgn.0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
sub eax, ecx
mov ecx, dword [esp + 0x68]
push eax
sub ecx, edi
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push ecx
push 0
push 0
mov byte [esp + 0xa4], 2
call edi
push eax
lea ecx, [esp + 0x3c]
call fcn.00439828
mov eax, dword [esi + 0x138]
test eax, eax
je 0x40d210
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x6c]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
sub eax, ebx
push eax
sub ecx, edx
mov edx, dword [esi + 0xfc]
push ecx
push edx
push 0
mov byte [esp + 0xa4], 3
call edi
push eax
lea ecx, [esp + 0x20]
call fcn.00439828
mov eax, dword [esi + 0x11c]
push eax
lea ecx, [esp + 0x4c]
call fcn.004077a0
push eax
call fcn.0043981a
test eax, eax
je 0x40d1d6
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push 3
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
call fcn.00439283
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 2
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.0043987f
jmp 0x40d221
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov ecx, dword [esi + 0x50]
mov eax, 0x14
cmp ecx, eax
jne 0x40d238
push 1
push 0
lea eax, [esp + 0x58]
push eax
jmp 0x40d251
cmp dword [esi + 0x4c], eax
jne 0x40d248
push 2
push 0
lea ecx, [esp + 0x58]
push ecx
jmp 0x40d251
push 0
push 0
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.0040c700
mov ecx, dword [esi + 0x50]
mov eax, 8
cmp ecx, eax
jne 0x40d26f
push 1
push 2
lea eax, [esp + 0x58]
push eax
jmp 0x40d288
cmp dword [esi + 0x4c], eax
jne 0x40d27f
push 2
push 2
lea ecx, [esp + 0x58]
push ecx
jmp 0x40d288
push 0
push 2
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.0040c700
mov ecx, dword [esi + 0x50]
mov eax, 9
cmp ecx, eax
jne 0x40d2a6
push 1
push 1
lea eax, [esp + 0x58]
push eax
jmp 0x40d2bf
cmp dword [esi + 0x4c], eax
jne 0x40d2b6
push 2
push 1
lea ecx, [esp + 0x58]
push ecx
jmp 0x40d2bf
push 0
push 1
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call fcn.0040c700
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call edi
mov ebx, eax
push 0x32
mov dword [esp + 0x20], ebx
call edi
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
push 0x7f
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jne 0x40d30f
call fcn.00445e31
call fcn.00445e31
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebx
push 1
push edi
call dword [sym.imp.USER32.dll_CopyImage]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x100]
push 3
push 0
push 0
push edx
mov edx, dword [esp + 0x64]
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ebx
push 5
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
lea edi, [esi + 0x10]
jne 0x40d36c
mov ecx, dword [esp + 0x18]
push edi
call fcn.00430fb2
mov eax, dword [esi + 0x140]
test eax, eax
mov edx, dword [esp + 0x50]
je 0x40d383
mov ecx, dword [esi + 0x114]
push ecx
jmp 0x40d38a
mov eax, dword [esi + 0x118]
push eax
lea ecx, [esp + 0x54]
call dword [edx + 0x30]
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], vtable.CFont.0
push 0
push str.System
push 0x33
mov byte [esp + 0xa0], 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
lea ecx, [esp + 0x4c]
call fcn.004427e0
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x54]
call dword [edx + 0x28]
push 1
lea ecx, [esp + 0x54]
call fcn.00438e1b
mov edx, dword [esi + 0x1c]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x80], eax
push 0x18
mov dword [esp + 0x88], eax
push edx
mov dword [esp + 0x90], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x74]
mov eax, dword [esi + 0x58]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esi + 0xfc]
sub eax, edx
mov edx, dword [esp + 0x68]
sub eax, ebx
mov ebx, dword [esi + 0x10c]
add eax, edx
mov edx, dword [esi + 0x110]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov dword [esp + 0x20], edx
push 0x40024
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, dword [eax - 0xc]
push edx
push ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x60]
call dword [eax + 0x68]
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x54]
call dword [edx + 0x28]
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0xfc]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
push 0xcc0020
push 0
push 0
push edx
push ecx
sub eax, ebx
push eax
mov eax, dword [ebp + 4]
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [esp + 0x34]
test edi, edi
jne 0x40d4ae
xor eax, eax
jmp 0x40d4b1
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.004398b1
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_ReleaseDC]
push edx
push ecx
call ebx
test edi, edi
je 0x40d4d7
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x54]
push edi
push edx
call fcn.004398b1
lea ecx, [esp + 0x48]
call fcn.0043987f
lea ecx, [esp + 0x38]
call fcn.0043987f
lea ecx, [esp + 0x40]
call fcn.0043987f
push 0
mov ecx, ebp
call fcn.00439283
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call ebx
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 2
mov dword [esp + 0x40], esi
call fcn.0043987f
lea ecx, [esp + 0x38]
mov byte [esp + 0x94], 1
mov dword [esp + 0x38], esi
call fcn.0043987f
lea ecx, [esp + 0x48]
mov byte [esp + 0x94], 0
call fcn.004070c0
lea ecx, [esp + 0x50]
mov dword [esp + 0x94], 0xffffffff
call fcn.004395a9
mov ecx, dword [esp + 0x8c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4