Function at 0x41ba90
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepadib.c
push 0x9770000
push str.HalftoneResizeDIB
mov dword [0x44100c], ebp
sub esp, 0x60
mov ecx, 0x18
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x41bab0
push ebx
push esi
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 8
cmp dword [ebp + 0xc], 0
jg 0x41bade
cmp dword [ebp + 0x10], 0
jg 0x41bade
inc dword [ebp - 8]
mov eax, 0
jmp 0x41bdd8
mov byte [ebp - 8], 0xb
push dword [ebp + 8]
call fcn.00416111
add esp, 4
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0xd
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x10]
mov esi, dword [edi + 4]
mov eax, esi
imul eax, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
cdq
idiv ecx
mov dword [ebp - 0x64], eax
inc dword [ebp - 8]
mov edi, dword [ebp + 8]
mov edi, dword [edi + 0x10]
mov esi, dword [edi + 8]
mov eax, esi
imul eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
cdq
idiv ecx
mov dword [ebp - 0x68], eax
mov byte [ebp - 8], 0x10
cmp dword [ebp + 0xc], 0
jg 0x41bb3f
inc dword [ebp - 8]
mov edi, dword [ebp - 0x64]
mov dword [ebp + 0xc], edi
jmp 0x41bb8f
mov byte [ebp - 8], 0x12
cmp dword [ebp + 0x10], 0
jg 0x41bb54
inc dword [ebp - 8]
mov edi, dword [ebp - 0x68]
mov dword [ebp + 0x10], edi
jmp 0x41bb8f
mov byte [ebp - 8], 0x14
cmp dword [ebp + 0x14], 0
je 0x41bb8b
inc dword [ebp - 8]
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x64], edi
jle 0x41bb72
inc dword [ebp - 8]
mov edi, dword [ebp - 0x68]
mov dword [ebp + 0x10], edi
mov byte [ebp - 8], 0x17
mov edi, dword [ebp + 0x10]
cmp dword [ebp - 0x68], edi
jle 0x41bb87
inc dword [ebp - 8]
mov edi, dword [ebp - 0x64]
mov dword [ebp + 0xc], edi
mov byte [ebp - 8], 0x19
mov byte [ebp - 8], 0x1b
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
mov dword [ebp - 0x40], edi
mov byte [ebp - 8], 0x1c
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x10]
movzx esi, word [esi + 0xe]
imul edi, esi
mov eax, edi
add eax, 0x1f
mov ecx, 0x20
cdq
idiv ecx
mov edi, eax
shl edi, 2
mov dword [ebp - 0x3c], edi
inc dword [ebp - 8]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov edi, dword [edi + 0x10]
sub esi, dword [edi + 0x14]
mov eax, dword [ebp - 0x3c]
mul dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov edi, dword [ebp - 0x6c]
add esi, dword [ebp - 0x6c]
mov dword [ebp - 0x44], esi
mov byte [ebp - 8], 0x1f
push dword [ebp - 0x44]
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov dword [0x44100c], ebp
mov dword [ebp - 0x48], eax
cmp eax, 0
jne 0x41bc0b
inc dword [ebp - 8]
mov eax, 0
jmp 0x41bdd8
mov byte [ebp - 8], 0x22
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov ebx, dword [edi + 0x10]
sub esi, dword [ebx + 0x14]
push esi
push dword [edi]
push dword [ebp - 0x48]
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x38], edi
inc dword [ebp - 8]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 0xc]
mov dword [edi + 4], esi
inc dword [ebp - 8]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp + 0x10]
mov dword [edi + 8], esi
inc dword [ebp - 8]
lea edi, [ebp - 0x48]
push edi
call fcn.00412f41
add esp, 4
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x28
push 0
push 0
push 0
push 0x4fa4ac
call sub.GDI32.DLL_CreateDCA
mov dword [0x44100c], ebp
mov dword [ebp - 0x50], eax
inc dword [ebp - 8]
push dword [ebp - 0x50]
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [0x44100c], ebp
mov dword [ebp - 0x4c], eax
inc dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x50]
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [0x44100c], ebp
mov dword [ebp - 0x54], eax
mov byte [ebp - 8], 0x2c
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call sub.GDI32.DLL_SelectObject
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x2e
lea edi, [ebp - 0x5c]
push edi
push dword [ebp - 0x4c]
call sub.GDI32.DLL_GetBrushOrgEx
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push 4
push dword [ebp - 0x4c]
call sub.GDI32.DLL_SetStretchBltMode
mov dword [0x44100c], ebp
mov dword [ebp - 0x60], eax
inc dword [ebp - 8]
push 0xcc0020
push 0
mov edi, dword [ebp + 8]
push dword [edi]
push dword [edi + 0x18]
mov edi, dword [edi + 0x10]
push dword [edi + 8]
push dword [edi + 4]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x4c]
call sub.GDI32.DLL_StretchDIBits
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x60]
push dword [ebp - 0x4c]
call sub.GDI32.DLL_SetStretchBltMode
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push 0
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x4c]
call sub.GDI32.DLL_SetBrushOrgEx
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x34
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp + 0x10]
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call sub.GDI32.DLL_GetDIBits
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x36
push dword [ebp - 0x54]
call sub.GDI32.DLL_DeleteObject
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x4c]
call sub.GDI32.DLL_DeleteDC
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x50]
call sub.GDI32.DLL_DeleteDC
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x3a
mov edi, dword [ebp + 8]
push dword [edi]
call sub.KERNEL32.dll_GlobalFree
mov dword [0x44100c], ebp
inc dword [ebp - 8]
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x48]
mov ecx, 0x3c
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 8], 0x3d
mov eax, 1
mov byte [ebp - 8], 0x3e
cmp dword [ebp - 0xc], 0x4fa414
je 0x41bdef
push 0
call fcn.0042b684
add esp, 4
pop edi
pop esi
pop ebx
leave
ret