Function at 0x4de840
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004de780
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push eax
mov dword [esp + 0x1c], eax
call esi
mov edi, eax
mov eax, dword [esp + 0x14]
push 0xc
push eax
call esi
imul edi, eax
mov eax, dword [0x603124]
cmp eax, 9
je 0x4de899
push eax
call fcn.00402080
movsx ecx, al
add esp, 4
cmp ecx, edi
je 0x4de9ac
lea eax, [edi - 1]
cmp eax, 0x17
ja case.0x4de8ac.3
movzx edx, byte [eax + 0x4debf0]
jmp dword [edx*4 + 0x4debd4]
mov dword [0x603124], 0
jmp 0x4de9ac
mov dword [0x603124], 1
jmp 0x4de9ac
mov dword [0x603124], 2
jmp 0x4de9ac
mov dword [0x603124], 3
jmp 0x4de9ac
xor eax, eax
mov ecx, 0x1b
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x1c], 0x6c
call dword [sym.imp.USER32.dll_GetDC]
push 1
mov edi, eax
push 1
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push 0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0
push 1
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 1
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp word [esp + 0x26], 0x10
jne 0x4de98a
cmp dword [esp + 0x28], 3
jne 0x4de98a
cmp dword [esp + 0x40], 0xf800
jne 0x4de98a
cmp dword [esp + 0x44], 0x7e0
jne 0x4de98a
cmp dword [esp + 0x48], 0x1f
jne 0x4de98a
mov dword [0x603124], 5
jmp 0x4de9ac
mov dword [0x603124], 4
jmp 0x4de9ac
mov dword [0x603124], 6
jmp 0x4de9ac
mov dword [0x603124], 7
mov edx, dword [0x603124]
mov eax, edx
push eax
mov dword [ebx + 4], edx
mov dword [ebx + 0x10], 1
call fcn.00402080
add esp, 4
cmp al, 8
jg 0x4deaac
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x18]
push eax
call fcn.00402100
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x4dea21
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx + 0xd60]
call fcn.004f4be0
mov ecx, 0x101
mov esi, 0x636018
lea edi, [esp + 0x88]
push 0
lea eax, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
push eax
call fcn.00402520
test eax, eax
mov dword [ebx + 8], eax
jne 0x4dea2c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax + 4]
lea eax, [eax*4 + 0x28]
push eax
call fcn.0043f000
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x18], eax
mov edx, dword [ecx + 4]
add esp, 4
xor eax, eax
test edx, edx
jle 0x4deab9
mov edi, 0x28
lea edx, [esp + 0x8d]
sub edi, edx
lea esp, [esp]
mov dl, byte [esp + eax*4 + 0x8e]
mov ecx, dword [ebx + 0x18]
mov byte [ecx + eax*4 + 0x2a], dl
mov ecx, dword [ebx + 0x18]
mov dl, byte [esp + eax*4 + 0x8d]
lea esi, [esp + eax*4 + 0x8d]
mov byte [ecx + eax*4 + 0x29], dl
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x10], eax
mov al, byte [esi - 1]
lea ecx, [edi + esi]
mov byte [ecx + edx], al
mov ecx, dword [ebx + 0x18]
mov eax, dword [esp + 0x10]
mov byte [ecx + eax*4 + 0x2b], 0
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
cmp eax, ecx
jl 0x4dea60
jmp 0x4deab9
push 0x34
call fcn.0043f000
add esp, 4
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 8]
mov dword [eax], 0x28
mov ecx, dword [ebx + 0x18]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 0x10]
xor edi, edi
cmp eax, edi
mov eax, dword [ebp + 0xc]
jne 0x4dead9
neg eax
mov ecx, dword [ebx + 0x18]
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0x18]
mov word [edx + 0xc], 1
mov eax, dword [ebx + 4]
push eax
call fcn.00402080
mov edx, dword [ebx + 0x18]
movsx cx, al
mov word [edx + 0xe], cx
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x10], edi
mov ecx, dword [ebx + 0x18]
mov dword [ecx + 0x14], edi
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x18], edi
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x1c], edi
mov eax, dword [ebx + 8]
add esp, 4
cmp eax, edi
je 0x4deb23
mov eax, dword [eax + 4]
jmp 0x4deb25
xor eax, eax
mov ecx, dword [ebx + 0x18]
mov dword [ecx + 0x20], eax
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x4deb37
mov eax, dword [eax + 4]
jmp 0x4deb39
xor eax, eax
mov edx, dword [ebx + 0x18]
mov dword [edx + 0x24], eax
cmp dword [ebx + 4], 5
jne 0x4deb69
mov eax, dword [ebx + 0x18]
mov dword [eax + 0x10], 3
mov eax, dword [ebx + 0x18]
add eax, 0x28
mov dword [eax], 0xf800
mov dword [eax + 4], 0x7e0
mov dword [eax + 8], 0x1f
mov ecx, dword [ebx + 0x18]
push edi
push edi
lea esi, [ebx + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x24]
push ecx
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
mov dword [ebx + 0x14], eax
jne 0x4deb88
mov dword [esi], eax
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x14]
lea edx, [ebx + 0x20]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x4debaa
mov ecx, ebx
call fcn.004de780
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x14]
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
shl eax, 2
mov dword [ebx + 0x3c], eax
pop edi
xor eax, eax
test ecx, ecx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8