Function at 0x45084f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
xor ebx, ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], ebx
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCR71.dll_malloc]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCR71.dll_memset
mov ecx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + ecx*4]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x4509c5
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x44]
call fcn.00450791
add esp, 0x10
test eax, eax
je 0x4509c5
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x40]
call fcn.00450791
add esp, 0x10
test eax, eax
je 0x4509c5
push dword [ebp - 0x24]
call edi
push dword [ebp - 0x1c]
mov dword [ebp - 4], eax
call edi
push dword [ebp - 0x18]
mov esi, eax
call edi
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
call edi
add esp, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
je 0x4509c5
cmp esi, ebx
je 0x4509d1
cmp dword [ebp - 8], ebx
je 0x4509c5
cmp eax, ebx
je 0x4509c5
push 1
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x44]
call fcn.004507ff
add esp, 0x10
test eax, eax
je 0x4509c5
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x40]
call fcn.004507ff
add esp, 0x10
test eax, eax
je 0x4509c5
mov al, byte [esi + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 0x3c], al
mov al, byte [esi + 8]
mov byte [ebp - 0x3b], al
mov ax, word [esi + 0xe]
imul ax, word [esi + 0xc]
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 0x14]
add eax, ecx
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
add dword [ebp - 0x20], eax
push ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
push 0x10
lea eax, [ebp - 0x3c]
shl ecx, 4
push eax
push dword [ebp + 8]
lea ecx, [ecx + edx + 6]
mov dword [ebp - 0x30], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x45088f
cmp esi, ebx
je 0x4509d1
push esi
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 4], ebx
je 0x4509e0
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x4509ef
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 8], ebx
je 0x4509fe
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll_free]
pop ecx
cmp dword [ebp - 0x40], ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x450a0e
push dword [ebp - 0x40]
call esi
cmp dword [ebp - 0x44], ebx
je 0x450a18
push dword [ebp - 0x44]
call esi
mov eax, dword [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret