Function at 0x46acee
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
mov dword [ebp - 4], edi
je 0x46af9e
mov esi, dword [sym.imp.KERNEL32.dll__lread]
lea eax, [ebp - 0x6c]
push 0xe
push eax
push edi
call esi
cmp word [ebp - 0x6c], 0x464d
je 0x46ad62
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
push dword [ebp + 0x14]
lea eax, [ebp - 0x16c]
push str.Invalid_file_format__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x16c]
push ebx
push ebx
push eax
call fcn.004e31ea
push 1
pop eax
jmp 0x46af9e
lea eax, [ebp - 0x5c]
push 0x28
push eax
push edi
call esi
mov eax, dword [ebp - 0x4e]
push 1
movzx ecx, ax
mov dword [ebp - 0x14], eax
pop eax
shl eax, cl
imul ecx, dword [ebp - 0x58]
add ecx, 0x1f
shr ecx, 3
and ecx, 0xfffc
cmp dword [ebp - 0x48], ebx
mov dword [ebp - 0x20], ecx
jne 0x46ad9b
movzx ecx, cx
imul ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x3c]
cmp ecx, ebx
jne 0x46ada8
movzx ecx, ax
mov dword [ebp - 0x3c], ecx
mov eax, ecx
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x5c]
shl eax, 2
mov dword [ebp - 0xc], eax
add eax, ecx
movzx eax, ax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push 0xa
cmp word [ebp + 0x14], 0
pop ecx
lea esi, [ebp - 0x5c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x5c]
lea esi, [ebx + eax]
mov dword [ebp - 0x10], esi
je 0x46adf9
movzx eax, word [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lread]
push dword [ebp + 0x14]
push esi
call fcn.0046afa3
pop ecx
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
pop ecx
mov dword [ebp - 0x1c], eax
push 1
push eax
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0x34], eax
call edi
xor eax, eax
cmp word [ebp + 0x14], ax
je 0x46ae40
cmp word [ebp + 0x14], ax
mov ecx, dword [ebp - 0x10]
jbe 0x46ae40
mov word [ecx], ax
inc ecx
inc ecx
inc eax
cmp ax, word [ebp + 0x14]
jb 0x46ae34
mov ax, word [ebx + 4]
mov cx, word [ebx + 8]
movzx eax, ax
push 1
push eax
push dword [ebp + 8]
mov word [ebp - 8], cx
mov dword [ebp - 0x28], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
mov dword [ebp + 0x14], eax
push dword [ebp - 0x1c]
push eax
call esi
push dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
call edi
movzx edi, word [ebp - 0x20]
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
mov dword [ebp - 0x10], eax
pop eax
mov dword [ebx + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
push eax
push 0
mov dword [ebx + 8], eax
push dword [ebp - 4]
call edi
push 0
push dword [ebp - 0x62]
push dword [ebp - 4]
call edi
cmp word [ebp - 8], 0
jbe 0x46af46
xor eax, eax
cmp word [ebp - 0x14], 0x18
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
setne al
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
movzx eax, word [ebp - 8]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x20]
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lread]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
push 1
push 0
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_SetDIBits]
push dword [ebp - 0x18]
push dword [ebp + 0x14]
call edi
push 0xcc0020
push 0
push 0
mov dword [ebp - 0x30], eax
push dword [ebp + 0x14]
push 1
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x30]
push dword [ebp + 0x14]
call edi
inc dword [ebp + 0x10]
dec dword [ebp - 8]
jne 0x46aee3
push 0
push dword [ebp - 0x34]
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 0x2c]
push dword [ebp + 0x14]
call esi
push dword [ebp - 0x18]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x1c]
call esi
push dword [ebp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret