Function at 0x1005e190
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov ebx, ebx
mov edx, edx
xor ebp, ebp
mov dword [esp + 0x10], ebp
cmp dword [0x101d0888], 0x45d3
mov ah, ah
cmp dword [0x101d0884], 0xffffc29c
mov bh, bh
mov ch, ch
mov esi, esi
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x30]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
push edx
pop edx
mov dword [esp + 0x48], 0x28
push eax
pop eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x4c], edx
mov al, al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
mov edi, edi
mov word [esp + 0x54], 1
cmp dword [0x101d08a0], 0xffffa218
mov word [esp + 0x56], 0x18
cmp dword [0x101d08a4], 0x755
mov dword [esp + 0x58], ebp
mov bl, bl
mov dword [esp + 0x5c], ebp
mov dh, dh
mov dword [esp + 0x60], ebp
cmp dword [0x101d0898], 0x5cf2
mov dword [esp + 0x64], ebp
push ebx
pop ebx
mov dword [esp + 0x6c], ebp
cmp dword [0x101d0890], 0xffffff63
mov dword [esp + 0x68], ebp
cmp dword [0x101d088c], 0x6537
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
cmp dword [0x101d0884], 0xffffc29c
lea ecx, [ebx + 0x28]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x18], eax
push ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x14], eax
cmp dword [0x101d08a4], 0xfffff8aa
mov ecx, 0xa
lea esi, [esp + 0x48]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [0x101d08a8], 0xffffc764
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
mov al, al
cmp edi, ebp
je 0x1005e300
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov esi, eax
cmp dword [0x101d08a4], 0xfffff8aa
push ebp
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edi, eax
mov cl, cl
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [0x101d08a0], 0x5de7
jmp 0x1005e306
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]
cmp dword [0x101d0888], 0x45d3
cmp edi, ebp
je 0x1005e356
push 1
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, esi
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
nop
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
nop
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
cmp dword [0x101d08a0], 0x5de7
cmp esi, 0xffffffff
jne 0x1005e3a9
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x101d0884], 0xffffc29c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov word [esp + 0x20], 0x4d42
add ebx, 0x36
cmp dword [0x101d0898], 0x5cf2
mov dword [esp + 0x22], ebx
cmp dword [0x101d0890], 0xffffff63
mov word [esp + 0x26], bp
nop
mov word [esp + 0x28], bp
cmp dword [0x101d0898], 0x5cf2
mov dword [esp + 0x2a], 0x36
cmp dword [0x101d0898], 0x5cf2
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
cmp dword [0x101d0898], 0x5cf2
mov edx, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call edi
cmp dword [0x101d0884], 0xffffc29c
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [0x101d0888], 0x45d3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x101d088c], 0xffff9ac8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, cl
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
invalid