Function at 0x10053140
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edx, edx
mov bl, bl
xor ebp, ebp
mov dword [esp + 0x10], ebp
push eax
pop eax
mov esi, esi
test eax, eax
test bh, bh
push edx
pop edx
mov eax, eax
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov esi, esi
mov dword [esp + 0x48], 0x28
test dh, dh
mov edx, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
mov bl, bl
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
xchg ebx, eax
xchg ebx, eax
mov word [esp + 0x54], 1
test al, al
mov word [esp + 0x56], 0x18
mov edx, edx
mov dword [esp + 0x58], ebp
mov esi, esi
mov dword [esp + 0x5c], ebp
test eax, 0x7007
mov dword [esp + 0x60], ebp
mov bl, bl
mov dword [esp + 0x64], ebp
test bh, bh
mov dword [esp + 0x6c], ebp
mov ecx, ecx
mov dword [esp + 0x68], ebp
test eax, 0x1af
mov eax, dword [esp + 0x34]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov ebx, eax
sar ebx, 5
imul ebx, dword [esp + 0x38]
add ebx, ebx
add ebx, ebx
mov al, al
lea ecx, [ebx + 0x28]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esp + 0x18], eax
test al, al
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [esp + 0x14], eax
test cl, cl
mov ecx, 0xa
lea esi, [esp + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ch, ch
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
mov ch, ch
cmp edi, ebp
je 0x10053256
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
test dh, dh
push ebp
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edi, eax
mov edi, edi
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, eax
jmp 0x1005325c
mov esi, dword [esp + 0x1c]
mov edi, ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
push ebp
push eax
add eax, 0x28
push eax
mov eax, dword [esp + 0x80]
push edx
push ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov bh, bh
cmp edi, ebp
je 0x100532a6
push 1
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
pop ebx
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov dl, dl
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edx
pop edx
mov ecx, dword [esp + 0x78]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
mov bl, bl
cmp esi, 0xffffffff
jne 0x100532e9
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ebp, ebp
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov esi, esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov word [esp + 0x20], 0x4d42
add ebx, 0x36
mov ah, ah
mov dword [esp + 0x22], ebx
test dl, dl
mov word [esp + 0x26], bp
test ch, ch
mov word [esp + 0x28], bp
mov ch, ch
mov dword [esp + 0x2a], 0x36
mov ebx, ebx
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebp
lea edx, [esp + 0x14]
push edx
push 0xe
lea eax, [esp + 0x2c]
push eax
push esi
call edi
mov edx, edx
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call edi
test al, al
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
nop
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret