Function at 0x4ce350
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58e618
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4ce37a
call fcn.0056eff3
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4ce389
lea ecx, [edi + 0x10]
call fcn.0056fb6a
mov ebx, dword [esp + 0x90]
lea eax, [esp + 0x20]
push ebx
push eax
mov ecx, edi
call fcn.004cde70
test ebx, ebx
jne 0x4ce3a5
xor eax, eax
jmp 0x4ce3a8
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.0056ef8b
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
mov esi, dword [esp + 0x94]
sub eax, ebp
sub ecx, esi
push eax
push ecx
mov ecx, dword [ebx + 4]
lea esi, [edi + 0x10]
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, esi
call fcn.0056fb13
test esi, esi
je 0x4ce3f9
mov esi, dword [esi + 4]
mov edx, dword [edi + 4]
push esi
push edx
call fcn.0056f0cc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
push eax
lea ecx, [esp + 0x34]
call fcn.0056fbd0
test eax, eax
je 0x4ce41f
mov eax, dword [eax + 4]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x94]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x30], vtable.CGdiObject.0
lea ecx, [esp + 0x30]
mov dword [esp + 0x88], 0
call fcn.0056fb6a
mov esi, dword [esp + 0x9c]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xa0]
mov ecx, esi
mov dword [esp + 0x88], 0xffffffff
sub ecx, ebp
cmp eax, ecx
jge 0x4ce4df
mov ecx, dword [esp + 0x98]
mov edx, ebx
sub edx, ecx
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jge 0x4ce4df
sub esi, eax
sub esi, ebp
mov dword [esp + 0x90], esi
fild dword [esp + 0x90]
fmul qword [0x599a38]
call fcn.005509ac
mov ecx, dword [esp + 0x98]
mov ebp, dword [esp + 0x24]
sub ebx, ecx
mov esi, eax
sub ebx, ebp
mov dword [esp + 0x90], ebx
fild dword [esp + 0x90]
fmul qword [0x599a38]
call fcn.005509ac
mov ecx, dword [esp + 0x20]
add ecx, esi
jmp 0x4ce5ce
mov edx, dword [esp + 0x98]
mov eax, esi
fld qword [0x599ab8]
sub eax, ebp
sub ebx, edx
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
je 0x4ce51a
fild dword [esp + 0x20]
fidiv dword [esp + 0x30]
fstp qword [esp + 0x18]
test ebx, ebx
je 0x4ce528
fstp st(0)
fild dword [esp + 0x24]
fidiv dword [esp + 0x34]
fld qword [esp + 0x18]
fcomp st(1)
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
fnstsw ax
test ah, 0x41
jne 0x4ce561
fld qword [esp + 0x18]
fcomp qword [0x59a3c8]
fnstsw ax
test ah, 0x40
jne 0x4ce585
fdiv qword [esp + 0x18]
fimul dword [esp + 0x34]
call fcn.005509ac
mov dword [esp + 0x2c], eax
jmp 0x4ce587
fcom qword [0x59a3c8]
fnstsw ax
test ah, 0x40
jne 0x4ce585
fld qword [esp + 0x18]
fdiv st(1)
fimul dword [esp + 0x30]
call fcn.005509ac
fstp st(0)
mov dword [esp + 0x28], eax
jmp 0x4ce587
fstp st(0)
sub esi, dword [esp + 0x28]
sub esi, ebp
mov dword [esp + 0x90], esi
fild dword [esp + 0x90]
fmul qword [0x599a38]
call fcn.005509ac
mov ebp, dword [esp + 0x2c]
mov esi, eax
sub ebx, ebp
mov dword [esp + 0x90], ebx
fild dword [esp + 0x90]
fmul qword [0x599a38]
call fcn.005509ac
mov edx, dword [esp + 0x28]
lea ecx, [esi + edx]
push 0
lea edx, [eax + ebp]
sub esp, 0x10
mov ebx, esp
push edi
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov ecx, edi
mov dword [ebx + 0xc], edx
call fcn.004cdd90
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ce5f6
mov eax, dword [eax + 4]
push eax
mov eax, dword [edi + 4]
push eax
call fcn.0056f0cc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ce616
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x90], eax
jne 0x4ce61d
xor eax, eax
jmp 0x4ce843
xor esi, esi
xor ebp, ebp
push esi
push esi
push esi
push 0x5e7598
mov dword [esp + 0xb4], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
push 0xe
push ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 1
jg 0x4ce744
mov ebx, 1
mov ebp, 1
mov cl, bl
shl ebp, cl
shl ebp, 2
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x40]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x44]
mov eax, ebx
and eax, 0xffff
mov edi, dword [esp + 0x48]
imul eax, ecx
add eax, 0x1f
mov word [esp + 0x66], bx
cdq
and edx, 0x1f
mov dword [esp + 0x58], 0x28
add eax, edx
mov dword [esp + 0x5c], ecx
mov ebx, eax
mov dword [esp + 0x60], edi
sar ebx, 5
imul ebx, edi
shl ebx, 2
mov word [esp + 0x64], 1
mov dword [esp + 0x68], esi
lea eax, [ebx + ebp + 0x28]
mov dword [esp + 0x6c], esi
push eax
push 0x42
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x58]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x4ce776
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [esp + 0xa8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x4ce77a
cmp edi, 4
jg 0x4ce753
mov ebx, 4
jmp 0x4ce668
cmp edi, 8
jg 0x4ce762
mov ebx, 8
jmp 0x4ce668
xor ebx, ebx
cmp edi, 0x10
setg bl
dec ebx
and ebx, 0xfffffff8
add ebx, 0x18
jmp 0x4ce674
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x90]
push 0
lea ecx, [esi + ebp + 0x28]
push esi
push ecx
push edx
push 0
push eax
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4ce7c1
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ebx, [ebx + ebp + 0x36]
xor eax, eax
add ebp, 0x36
mov word [esp + 0x30], 0x4d42
lea ecx, [ebx + 0xe]
mov dword [esp + 0x32], ebx
push ecx
push 0x42
mov word [esp + 0x3e], ax
mov word [esp + 0x40], ax
mov dword [esp + 0x42], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x30]
mov edx, eax
lea edi, [eax + 0xe]
push ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 8], ecx
mov cx, word [esp + 0x40]
mov word [edx + 0xc], cx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
mov edi, dword [esp + 0x18]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebp
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 0x18