Function at 0x4047e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x433b0c
mov eax, dword fs:[0]
push eax
mov eax, 0x80138
call fcn.00429d10
mov eax, dword [0x459f34]
xor eax, esp
mov dword [esp + 0x80134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459f34]
xor eax, esp
push eax
lea eax, [esp + 0x8014c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
mov esi, ecx
push ebx
push 0xc0000000
lea ecx, [esi + 0x74]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], vtable.CBitmap.0
lea ecx, [esp + 0x24]
mov dword [esp + 0x80154], ebx
call sub.mfc90.dll_Ordinal_367
push 0xff
lea eax, [esp + 0x4d]
push ebx
push eax
mov byte [esp + 0x80160], 1
mov byte [esp + 0x54], bl
call sub.MSVCR90.dll_memset
mov eax, dword [esi + 0x78]
add esp, 0xc
cmp eax, ebx
jne 0x40488a
xor eax, eax
jmp 0x40488d
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90.dll_Ordinal_1357
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov edx, dword [esi + 0x78]
push eax
push ecx
mov ecx, dword [edx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x18]
call sub.mfc90.dll_Ordinal_1358
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push edx
push eax
call sub.mfc90.dll_Ordinal_6074
mov ecx, dword [esp + 0x28]
push 3
push ecx
mov edi, eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x80]
cmp eax, ebx
jne 0x4048f2
xor eax, eax
jmp 0x4048f5
mov eax, dword [eax + 4]
push 0xcc0020
push ecx
push edx
push ebx
push ebx
push eax
push ecx
push edx
mov edx, dword [esp + 0x48]
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
cmp edi, ebx
jne 0x404916
xor edi, edi
jmp 0x404919
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x28]
push edi
push eax
call sub.mfc90.dll_Ordinal_6074
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], vtable.CPalette.0
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 8]
push 0x26
push ecx
mov byte [esp + 0x8015c], 2
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
test eax, 0x100
je 0x40499a
push 0x408
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov edi, eax
lea eax, [edi + 4]
push eax
mov edx, 0x300
mov word [edi], dx
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx + 4]
push 0xff
push ebx
push edx
call dword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
push edi
mov word [edi + 2], ax
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90.dll_Ordinal_1358
push edi
call sub.mfc90.dll_Ordinal_266
add esp, 4
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.004045c0
mov esi, eax
cmp esi, ebx
je 0x404a1d
lea ecx, [esp + 0x38]
call fcn.0040f910
lea eax, [esp + 0x48]
push eax
push 0x5f
push 0x80000
lea ecx, [esp + 0x154]
push ecx
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x80168], 3
call fcn.0040fff0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
lea edx, [esp + 0x38]
push edx
push edi
lea eax, [esp + 0x154]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x38]
mov byte [esp + 0x80154], 2
call fcn.0040f930
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80154], 1
mov dword [esp + 0x1c], vtable.CPalette.0
call fcn.00404320
lea ecx, [esp + 0x24]
mov byte [esp + 0x80154], bl
call sub.mfc90.dll_Ordinal_636
lea ecx, [esp + 0x14]
mov dword [esp + 0x80154], 0xffffffff
mov dword [esp + 0x14], vtable.CBitmap.0
call fcn.00404320
mov ecx, dword [esp + 0x8014c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80134]
xor ecx, esp
call fcn.00429cfe
add esp, 0x80144
ret