Function at 0x408f40
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x55d561
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5b7a9c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b7a9c]
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.0050689c
push 0
push 0x20
push 0
mov ecx, esi
call fcn.005068c8
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 0x408fc7
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.005093bc
push 0
push 0
push 0
push 0x5703d4
mov dword [esp + 0xdc], 0
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
lea ecx, [esp + 0x18]
call fcn.005099d8
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.00509c96
test eax, eax
je 0x40903f
mov eax, dword [eax + 4]
test eax, eax
je 0x40903f
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.00508284
test eax, eax
je 0x409056
push edi
push eax
lea ecx, [esi + 0x5c]
call fcn.00401da0
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 0x4090c4
push 0x26
push eax
call fcn.0054068a
add esp, 8
test eax, eax
je 0x4090c4
sub eax, dword [esi + 0x5c]
sar eax, 1
cmp eax, 0xffffffff
je 0x4090c4
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push 1
push 0x5703d0
push ecx
call edi
mov edx, dword [esp + 0x2c]
sub dword [esi + 0x64], edx
mov eax, dword [esi + 0x54]
cmp eax, 1
je 0x4090d1
cmp eax, 2
jne 0x40913d
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 0x4090ed
mov eax, edx
push 0x16
push eax
push ecx
push 0
push 0
push 0
mov ecx, esi
call fcn.00506c85
lea edi, [esi + 0xdc]
mov ecx, edi
call fcn.00509d02
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.00509caa
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.00509a41
lea edi, [esi + 0xcc]
mov ecx, edi
call fcn.00509d02
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebp
push eax
mov ecx, ebx
call fcn.005099d8
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.00509caa
test edi, edi
je 0x4091c1
mov edi, dword [edi + 4]
mov edx, dword [esi + 0xb0]
push edi
push edx
call fcn.00509d63
lea ecx, [esi + 0xbc]
call fcn.00509a41
lea edi, [esi + 0xd4]
mov ecx, edi
call fcn.00509d02
mov eax, dword [esp + 0x18]
push eax
call ebp
push eax
lea ecx, [esi + 0xbc]
call fcn.005099d8
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.00509caa
test edi, edi
je 0x40921d
mov edi, dword [edi + 4]
mov edx, dword [esi + 0xc0]
push edi
push edx
call fcn.00509d63
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00502b89
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.005093bc
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.005099d8
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.00509caa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00509d63
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.00509778
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00509737
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.00407e10
push 5
call fcn.0044e490
add esp, 4
mov ecx, eax
and ecx, reloc.WSOCK32.dll_accept
mov dword [0x5b9004], eax
jns 0x409332
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x40933a
dec eax
mov dword [0x5b9004], eax
cdq
sub eax, edx
sar eax, 1
inc eax
push 5
mov dword [0x5b9000], eax
call fcn.0044e490
push 3
mov dword [0x5b8ffc], eax
call fcn.0044e490
add esp, 8
lea ecx, [esp + 0x24]
mov dword [0x5b8ff8], eax
mov dword [esi + 0x94], 1
mov byte [esp + 0xcc], 1
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00408be0
lea ecx, [esp + 0x44]
mov byte [esp + 0xcc], 0
call fcn.00509a57
lea ecx, [esp + 0x14]
mov dword [esp + 0xcc], 0xffffffff
call fcn.00509a57
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.0053fa67
add esp, 0xbc
ret 0x14