Function at 0x45c120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 2
push 4
push 0
push 0
push 0x40000000
mov edi, eax
push esi
mov dword [ebp - 0x94], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x98], esi
cmp esi, 0xffffffff
je 0x45c21a
push 2
push 0
push 0
push esi
mov dword [ebp - 0xc], 0x10000
mov word [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x78]
push eax
push 6
lea ecx, [ebp - 0xc]
push ecx
push esi
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp - 0xac]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov ecx, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0xa0]
xor eax, eax
push eax
lea edx, [ebp - 0x74]
push edx
push eax
push eax
push eax
push ecx
mov esi, ecx
mov dword [ebp - 0x68], eax
push edi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], 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 - 0x74], 0x28
mov word [ebp - 0x66], ax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x45c238
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push esi
call ebx
test edi, edi
je 0x45c225
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x8c], 0x28
cmp ecx, 0x18
jge 0x45c25e
mov eax, 1
shl eax, cl
lea ecx, [eax*4 + 0x28]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
call fcn.0045b8c0
mov ebx, dword [ebp - 0x7c]
mov ecx, 0xa
lea esi, [ebp - 0x74]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x60]
xor esi, esi
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], esi
call fcn.0045b8c0
mov cx, word [ebp + 0xc]
mov edi, dword [ebp - 0x84]
push esi
push ebx
mov dword [ebx + 0x10], esi
push edi
mov word [ebx + 0xe], cx
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x9c]
push edx
push esi
mov esi, dword [ebp - 0x94]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x45c310
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 0x90]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 8
push ecx
call edi
mov edx, dword [ebp - 0x88]
push edx
call edi
test esi, esi
je 0x45c2fd
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xa0]
xor eax, eax
push eax
lea ecx, [ebp - 0x48]
push ecx
push eax
push eax
push eax
push edx
mov dword [ebp - 0x3c], eax
push esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x48], 0x28
mov word [ebp - 0x3a], ax
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x45c37f
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x90]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 8
push eax
call edi
mov ecx, dword [ebp - 0x88]
push ecx
jmp 0x45c2f0
mov edx, dword [ebp - 0x34]
xor esi, esi
push edx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
call fcn.0045b8c0
push 0x34
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
call fcn.0045b8c0
mov eax, dword [ebp - 0x80]
push 0
push eax
mov edi, eax
mov ecx, 0xb
lea esi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x94]
push esi
push eax
push 0
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x45c412
mov edx, dword [ebp - 0x80]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x84]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 0x90]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x10
push ecx
call esi
mov edx, dword [ebp - 0x88]
push edx
call esi
jmp 0x45c21a
mov al, byte [ebx + 4]
cmp dword [ebp + 0xc], 4
mov esi, dword [ebp - 0x98]
setne dl
mov byte [ebp - 0x1c], al
mov cl, byte [ebx + 8]
dec dl
and dl, 0x10
mov byte [ebp - 0x1a], dl
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x80]
mov byte [ebp - 0x1b], cl
mov byte [ebp - 0x19], 0
mov cx, word [ebx + 0xe]
mov word [ebp - 0x16], cx
mov edx, dword [ebx + 0x14]
add edx, dword [eax + 0x14]
push 2
add edx, dword [ebp - 0x8c]
push 0
push 0
push esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x16
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x78]
push ecx
push 0x10
lea edx, [ebp - 0x1c]
push edx
push esi
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebx + 0x14]
push 2
add eax, eax
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], 0
mov edx, dword [ecx + 0x14]
push 0
add edx, edi
push esi
mov dword [ebx + 0x14], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x8c]
push 0
lea eax, [ebp - 0x78]
push eax
push ecx
push ebx
push esi
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x84]
push 0
lea edx, [ebp - 0x78]
push edx
push edi
push eax
push esi
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push ecx
mov edi, dword [ebp - 0x80]
mov edx, dword [edi + 0x14]
mov eax, dword [ebp - 0x7c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov edx, dword [ebp - 0x84]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 0x90]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
add esp, 0x10
push eax
call esi
mov ecx, dword [ebp - 0x88]
push ecx
call esi
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x45c574
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00497792
mov esp, ebp
pop ebp
ret