Function at 0x40ebd0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4113a8
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x40ec40
lea edi, [esi + 0x68]
cmp edi, ebx
je 0x40ec45
cmp dword [edi + 4], ebx
je 0x40ec45
lea ecx, [esp + 0x14]
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov edx, dword [esi + 0x6c]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
mov dword [esp + 0x50], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call sub.MFC71U.DLL_CAsyncSocket::Attach
cmp edi, ebx
jne 0x40ece2
xor edi, edi
jmp 0x40ece5
cmp eax, 1
jne 0x40eca8
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
add edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xa0]
add eax, ecx
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x60]
test al, al
mov eax, dword [esi + 0x54]
mov dword [esp + 0x18], ecx
sete cl
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x58]
push ecx
push edx
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0040e970
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
cmp eax, 2
jne 0x40ee13
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
add esi, 0x84
push esi
mov ecx, edi
call sub.MFC71U.DLL_CDC::FillSolidRect
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x18]
push ebp
push edi
push eax
call sub.MFC71U.DLL_COleControl::SelectFontObject
mov edi, eax
mov al, byte [esi + 0x80]
test al, al
mov dword [esp + 0x14], edi
je 0x40edb0
mov eax, dword [esi + 0xa0]
mov ebp, dword [esp + 0x30]
cdq
idiv ebp
mov dword [esp + 0x10], ebx
test eax, eax
jl 0x40edeb
mov eax, dword [esi + 0x98]
mov ebx, dword [esp + 0x2c]
cdq
idiv ebx
mov ecx, eax
lea ecx, [ecx]
xor edi, edi
test ecx, ecx
jl 0x40ed94
jmp 0x40ed40
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x94]
mov eax, ebp
imul eax, dword [esp + 0x10]
add eax, ecx
mov ecx, ebx
imul ecx, edi
push 0xcc0020
push 0
push 0
add ecx, edx
mov edx, dword [esp + 0x28]
push edx
push ebp
push ebx
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x98]
mov ebx, dword [esp + 0x2c]
cdq
idiv ebx
mov ebp, dword [esp + 0x30]
inc edi
mov ecx, eax
cmp edi, ecx
jle 0x40ed40
mov eax, dword [esi + 0xa0]
cdq
idiv ebp
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
cmp edi, eax
jle 0x40ed30
mov edi, dword [esp + 0x14]
jmp 0x40edeb
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push edx
mov edx, dword [esi + 0xa0]
push eax
mov eax, dword [esi + 0x98]
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x9c]
push edx
mov edx, dword [esi + 0x94]
push eax
push ecx
mov ecx, dword [esp + 0x74]
push edx
call fcn.0040c8a0
test edi, edi
pop ebp
jne 0x40edf4
xor eax, eax
jmp 0x40edf7
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MFC71U.DLL_COleControl::SelectFontObject
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040fbf0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4