Function at 0x100574e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x10c]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
cmp ecx, 0xf800
jle 0x10057529
mov ecx, dword [esi + 0x30]
mov eax, 0xf800
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 8], edi
add eax, edi
cdq
idiv edi
imul ecx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
jmp 0x10057535
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 1
cmp dword [ebx + 4], 0
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
jne 0x10057558
mov eax, dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebx + 4], eax
test eax, eax
je 0x1005769f
mov ecx, dword [ebx + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebx + 8]
push 0xffffff
mov dword [ebp - 0x24], eax
mov edx, dword [ecx]
call dword [edx + 0x34]
push dword [ebx + 0x68]
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [ebx + 8]
push eax
mov dword [ebp - 0x30], eax
mov edx, dword [ecx]
call dword [edx + 4]
push 0
push 1
push 1
push edi
push dword [esi + 0x28]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x10057673
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10057668
mov ecx, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x10], eax
cmp ecx, edi
jge 0x100575d0
mov eax, dword [esi + 0x30]
mov edi, ecx
imul eax, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
jmp 0x100575d3
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetBitmapBits]
push dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
push dword [ebx + 4]
add dword [ebp - 0x14], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x44]
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
test edx, edx
jle 0x10057645
nop
mov eax, dword [esi + 0x3c]
sub edx, ecx
push 0xe20746
push 0
push ecx
push dword [ebx + 4]
mov edi, 0x7ff
push dword [ebp - 8]
cmp edx, edi
cmovl edi, edx
add eax, ecx
push edi
push dword [esi + 0x40]
push eax
mov eax, dword [ebx + 8]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [esi + 0x44]
add ecx, edi
mov dword [ebp - 0x1c], ecx
cmp ecx, edx
jl 0x10057600
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0xc]
add dword [esi + 0x40], edi
sub ecx, edi
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
test eax, eax
jne 0x100575b8
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
jmp 0x10057679
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebx + 8]
push dword [ebp - 0x24]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebx + 8]
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [ebx + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x30]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret