Function at 0x40dfd0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476888
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x40e040
lea edi, [esi + 0x6c]
cmp edi, ebx
je 0x40e045
cmp dword [edi + 4], ebx
je 0x40e045
lea ecx, [esp + 0x14]
call fcn.0046e0f4
mov edx, dword [esi + 0x70]
lea ecx, [esp + 0x24]
push ecx
push 0x18
push edx
mov dword [esp + 0x50], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x18]
call fcn.0046e590
cmp edi, ebx
jne 0x40e0e2
xor edi, edi
jmp 0x40e0e5
cmp eax, 1
jne 0x40e0a8
mov eax, dword [esi + 0xa8]
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xac]
add edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xb4]
add eax, ecx
mov dword [esp + 0x20], eax
mov al, byte [esi + 0x64]
test al, al
mov eax, dword [esi + 0x58]
mov dword [esp + 0x18], ecx
sete cl
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x5c]
push ecx
push edx
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0040dca0
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 0x40e213
mov edi, dword [esp + 0x4c]
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
add esi, 0x98
push esi
mov ecx, edi
call fcn.00470107
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 fcn.0046e916
mov edi, eax
mov al, byte [esi + 0x94]
test al, al
mov dword [esp + 0x14], edi
je 0x40e1b0
mov eax, dword [esi + 0xb4]
mov ebp, dword [esp + 0x30]
cdq
idiv ebp
mov dword [esp + 0x10], ebx
test eax, eax
jl 0x40e1eb
mov eax, dword [esi + 0xac]
mov ebx, dword [esp + 0x2c]
cdq
idiv ebx
mov ecx, eax
lea ecx, [ecx]
xor edi, edi
test ecx, ecx
jl 0x40e194
jmp 0x40e140
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xa8]
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 + 0xac]
mov ebx, dword [esp + 0x2c]
cdq
idiv ebx
mov ebp, dword [esp + 0x30]
inc edi
mov ecx, eax
cmp edi, ecx
jle 0x40e140
mov eax, dword [esi + 0xb4]
cdq
idiv ebp
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x10], edi
cmp edi, eax
jle 0x40e130
mov edi, dword [esp + 0x14]
jmp 0x40e1eb
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push edx
mov edx, dword [esi + 0xb4]
push eax
mov eax, dword [esi + 0xac]
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
mov edx, dword [esi + 0xa8]
push eax
push ecx
mov ecx, dword [esp + 0x74]
push edx
call fcn.0040dc30
test edi, edi
pop ebp
jne 0x40e1f4
xor eax, eax
jmp 0x40e1f7
mov eax, dword [edi + 4]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0046e916
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call fcn.0046e60e
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4