Function at 0x409040
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x55d421
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
push 0
push 0x100
push 0
mov esi, ecx
call fcn.00506f8e
push 0
push 0x20
push 0
mov ecx, esi
call fcn.00506fba
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xe4]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esi + 0xa8], eax
mov dword [esi + 0x6c], ecx
test eax, eax
jne 0x4090c7
mov dword [esi + 0x54], 3
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0x14]
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], eax
call fcn.00509a78
push 0
push 0
push 0
push 0x5703fc
mov dword [esp + 0xdc], 0
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [esp + 0x18]
call fcn.0050a0b6
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push ecx
call ebx
push eax
call fcn.0050a374
test eax, eax
je 0x40913f
mov eax, dword [eax + 4]
test eax, eax
je 0x40913f
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esi + 0x58]
push edi
call fcn.00508953
test eax, eax
je 0x409156
push edi
push eax
lea ecx, [esi + 0x5c]
call fcn.00401d70
mov eax, dword [esi + 0x5c]
mov eax, dword [eax - 0xc]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x4091c4
push 0x26
push eax
call fcn.0053fffa
add esp, 8
test eax, eax
je 0x4091c4
sub eax, dword [esi + 0x5c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4091c4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push 1
push 0x5703f8
push ecx
call edi
mov edx, dword [esp + 0x2c]
sub dword [esi + 0x64], edx
mov eax, dword [esi + 0x54]
cmp eax, 1
je 0x4091d1
cmp eax, 2
jne 0x40923d
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x90]
lea ecx, [eax + ecx + 5]
mov eax, dword [esi + 0x68]
cmp eax, edx
jg 0x4091ed
mov eax, edx
push 0x16
push eax
push ecx
push 0
push 0
push 0
mov ecx, esi
call fcn.00507373
lea edi, [esi + 0xdc]
mov ecx, edi
call fcn.0050a3e0
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x64]
push edx
push 0x5c
push 0
push 0
push 0x31
push eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x7d], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov ecx, edi
call fcn.0050a388
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x38]
mov dword [esi + 0x84], ecx
lea ebx, [esi + 0xac]
mov ecx, ebx
mov dword [esi + 0x88], edx
call fcn.0050a11f
lea edi, [esi + 0xcc]
mov ecx, edi
call fcn.0050a3e0
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebp
push eax
mov ecx, ebx
call fcn.0050a0b6
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call ebx
push eax
mov ecx, edi
call fcn.0050a388
test edi, edi
je 0x4092c1
mov edi, dword [edi + 4]
mov edx, dword [esi + 0xb0]
push edi
push edx
call fcn.0050a441
lea ecx, [esi + 0xbc]
call fcn.0050a11f
lea edi, [esi + 0xd4]
mov ecx, edi
call fcn.0050a3e0
mov eax, dword [esp + 0x18]
push eax
call ebp
push eax
lea ecx, [esi + 0xbc]
call fcn.0050a0b6
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call ebx
push eax
mov ecx, edi
call fcn.0050a388
test edi, edi
je 0x40931d
mov edi, dword [edi + 4]
mov edx, dword [esi + 0xc0]
push edi
push edx
call fcn.0050a441
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050327e
mov edi, eax
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x44]
call fcn.00509a78
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], vtable.CBitmap.0
mov eax, dword [esp + 0x18]
push eax
mov byte [esp + 0xd0], 2
call ebp
push eax
lea ecx, [esp + 0x48]
call fcn.0050a0b6
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ecx
call ebx
push eax
lea ecx, [esp + 0x28]
call fcn.0050a388
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.0050a441
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x20]
push 0
push ecx
push 0x14
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.00509e34
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00509df3
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
push 0xcc0020
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x54]
push edx
push eax
mov eax, dword [esi + 0xc0]
push ecx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, esi
call fcn.00407f10
push 5
call fcn.0044c150
add esp, 4
mov ecx, eax
and ecx, reloc.WSOCK32.dll_accept
mov dword [0x5b90c4], eax
jns 0x409432
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x40943a
dec eax
mov dword [0x5b90c4], eax
cdq
sub eax, edx
sar eax, 1
inc eax
push 5
mov dword [0x5b90c0], eax
call fcn.0044c150
push 3
mov dword [0x5b90bc], eax
call fcn.0044c150
add esp, 8
lea ecx, [esp + 0x24]
mov dword [0x5b90b8], eax
mov dword [esi + 0x94], 1
mov byte [esp + 0xcc], 1
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00408ce0
lea ecx, [esp + 0x44]
mov byte [esp + 0xcc], 0
call fcn.0050a135
lea ecx, [esp + 0x14]
mov dword [esp + 0xcc], 0xffffffff
call fcn.0050a135
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0053f73f
add esp, 0xbc
ret 0x14