Function at 0x4865d8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x4867de
cmp dword [edi + 0x30], 0
je 0x4867de
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_GetClipBox
add eax, 0xfffffffe
sub eax, 2
jae 0x4867de
lea ecx, [edi + 0x34]
mov edx, ebx
lea eax, [ebp - 0x38]
call fcn.004071c8
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebx + 4]
mov edx, esi
sub edx, dword [ebx]
lea eax, [ebp - 0x38]
call fcn.00407240
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x38]
call fcn.004071c8
lea eax, [ebp - 0x38]
call fcn.00407228
test al, al
jne 0x4867de
push esi
push edi
lea esi, [ebp - 0x38]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov ecx, dword [ebx + 4]
sub ecx, dword [ebp + 0x10]
mov edx, dword [ebx]
sub edx, esi
lea eax, [ebp - 0x38]
call fcn.00407240
xor eax, eax
mov dword [ebp - 0xc], eax
mov ecx, dword [edi + 0x50]
mov edx, dword [ebp - 0x34]
imul ecx, edx
mov eax, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 8], ecx
mov ebx, dword [ebp - 0x30]
sub ebx, eax
mov eax, dword [ebp - 0x2c]
sub eax, edx
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x484678]
call fcn.00486a90
mov esi, eax
cmp ebx, 0x40
jg 0x4866b5
cmp dword [ebp - 0x10], 0x40
jle 0x486748
push 0
mov ecx, 1
mov edx, ebx
mov eax, esi
call fcn.00487140
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
dec edx
sub edx, eax
jl 0x4867d7
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
push 0xcc0020
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
push 1
push ebx
push 0
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.gdi32.dll_BitBlt
movzx eax, byte [ebp + 8]
push eax
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 8]
lea eax, [eax + edx*4]
mov edx, dword [esi + 0x30]
mov ecx, ebx
call fcn.00484cf8
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x44]
push eax
push 1
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 0x50]
add dword [ebp - 8], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x4866db
jmp 0x4867d7
push 0
mov ecx, dword [ebp - 0x10]
mov edx, ebx
mov eax, esi
call fcn.00487140
push 0xcc0020
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
dec edx
sub edx, eax
jl 0x4867b4
inc edx
mov dword [ebp - 0x18], edx
movzx eax, byte [ebp + 8]
push eax
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0xc]
lea edx, [eax + edx*4]
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*4]
mov ecx, ebx
call fcn.00484cf8
mov eax, dword [edi + 0x50]
add dword [ebp - 8], eax
add dword [ebp - 0xc], ebx
dec dword [ebp - 0x18]
jne 0x486788
push 0xcc0020
push 0
push 0
mov eax, dword [esi + 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
mov eax, esi
call fcn.00403d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc