Function at 0x4a2120
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
jne 0x4a213c
mov ebx, dword [edi + 0xc]
jmp 0x4a213e
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x4a2158
mov al, byte [edi + 8]
test al, al
je 0x4a2158
sub al, 4
jne 0x4a2224
mov eax, dword [ebp + 8]
call fcn.0042615c
push eax
call sub.gdi32.dll_CreateSolidBrush
mov dword [ebp - 0x10], eax
push esi
push edi
lea edi, [ebp - 0x24]
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 eax, dword [esi + 4]
neg eax
push eax
mov eax, dword [esi]
neg eax
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_FillRect
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x4a2416
cmp byte [edi + 8], 4
jne 0x4a2416
push 0xcc0020
push 0
push 0
mov eax, ebx
call fcn.0042c47c
call fcn.004277b8
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp + 0xc]
sub edx, eax
sar edx, 1
jns 0x4a21f4
adc edx, 0
mov eax, dword [esi + 4]
neg eax
add edx, eax
push edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp + 0x10]
sub edx, eax
sar edx, 1
jns 0x4a220f
adc edx, 0
mov eax, dword [esi]
neg eax
add edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
jmp 0x4a2416
mov al, byte [edi + 8]
dec al
je 0x4a2301
dec al
je 0x4a2240
dec al
je 0x4a2348
jmp 0x4a2416
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi + 4]
pop edx
mov ecx, edx
cdq
idiv ecx
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi + 0xc]
pop edx
mov ecx, edx
cdq
idiv ecx
pop edx
sub eax, edx
jl 0x4a2416
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [esi]
pop edx
mov ecx, edx
cdq
idiv ecx
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [esi + 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
pop eax
sub edi, eax
jl 0x4a22f0
inc edi
mov dword [ebp - 0xc], eax
push 0xcc0020
push 0
push 0
mov eax, ebx
call fcn.0042c47c
call fcn.004277b8
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [ebp - 8]
sub eax, dword [esi + 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [ebp - 0xc]
sub eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0xc]
dec edi
jne 0x4a22a0
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x4a2273
jmp 0x4a2416
push 0xcc0020
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, ebx
call fcn.0042c47c
call fcn.004277b8
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [esi + 4]
neg eax
push eax
mov eax, dword [esi]
neg eax
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_StretchBlt
jmp 0x4a2416
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp + 0x14]
pop edx
mov ecx, edx
cdq
idiv ecx
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [ebp + 0x14]
pop edx
mov ecx, edx
cdq
idiv ecx
pop edx
sub eax, edx
jl 0x4a2416
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [esi]
add eax, dword [ebp + 0x18]
pop edx
mov ecx, edx
cdq
idiv ecx
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0x18]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
pop eax
sub edi, eax
jl 0x4a240a
inc edi
mov dword [ebp - 0xc], eax
push 0xcc0020
push 0
push 0
mov eax, ebx
call fcn.0042c47c
call fcn.004277b8
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x20]
imul dword [ebp - 8]
sub eax, dword [ebp + 0x14]
sub eax, dword [esi + 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x2c]
imul dword [ebp - 0xc]
sub eax, dword [ebp + 0x18]
sub eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_BitBlt
inc dword [ebp - 0xc]
dec edi
jne 0x4a23b4
inc dword [ebp - 8]
dec dword [ebp - 0x14]
jne 0x4a2381
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14