Function at 0x49f270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
push edi
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0xd4]
mov ecx, dword [eax + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x30]
call fcn.00405520
lea ecx, [ebp - 0x30]
call fcn.0044f460
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0xc0], eax
cmp dword [ebp - 0xc0], 0
jne 0x49f33e
mov dword [ebp - 0xc8], 0
lea ecx, [ebp - 0x30]
call fcn.00406190
mov eax, dword [ebp - 0xc8]
jmp 0x49f6ab
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x49f371
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0x30]
call fcn.00406190
mov eax, dword [ebp - 0xcc]
jmp 0x49f6ab
mov dword [ebp - 0x64], 0
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], 0x28
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x8c]
neg edx
mov dword [ebp - 0x5c], edx
mov eax, 0x18
mov word [ebp - 0x56], ax
mov dword [ebp - 0x54], 0
mov ecx, 1
mov word [ebp - 0x58], cx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x6c], eax
push 0x40cc0020
push 0
push 0
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 0x84], 0
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0x84]
push edx
push 0x18
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [ebp - 0xbc], 0
xor ecx, ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
xor edx, edx
mov word [ebp - 0x14], dx
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x94], 0x18
mov dword [ebp - 0xbc], 0x28
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0xb4], edx
mov eax, 1
mov word [ebp - 0xb0], ax
mov cx, word [ebp - 0x94]
mov word [ebp - 0xae], cx
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x80]
imul eax, dword [ebp - 0x94]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x7c]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
add edx, 0x28
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
jne 0x49f536
jmp 0x49f60a
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x49f551
jmp 0x49f60a
mov ecx, 0xa
lea esi, [ebp - 0xbc]
mov edi, dword [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x28
push edx
mov eax, dword [ebp - 0x7c]
push eax
push 0
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x49f5ac
jmp 0x49f60a
mov ecx, 0x4d42
mov word [ebp - 0x14], cx
mov edx, dword [ebp - 0x18]
add edx, 0x28
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xa], 0x36
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x88], 1
cmp dword [ebp - 0x38], 0xffffffff
je 0x49f61a
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc4], 0
je 0x49f63d
mov eax, dword [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x34], 0
je 0x49f661
cmp dword [ebp - 0x6c], 0
je 0x49f657
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x90], 0
je 0x49f677
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0xc0], 0
je 0x49f691
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xd0], edx
lea ecx, [ebp - 0x30]
call fcn.00406190
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc