Function at 0x457c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x5b327c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 2
push 0
push 1
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x457cde
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004626cb
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push edi
push 0
push eax
push 6
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], 0
push eax
push esi
mov edi, 1
mov word [ebp - 0x84], bx
mov dword [ebp - 0x88], 0x10000
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45805a
cmp dword [ebp - 0x78], 6
jne 0x45805a
mov edi, ebx
xor eax, eax
shl edi, 4
add edi, 6
mov dword [ebp - 0x80], eax
test ebx, ebx
jle 0x458055
mov dword [ebp - 0x74], 6
nop dword [eax]
nop dword [eax + eax]
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, dword [ebp - 0x8c]
push dword [ecx + eax*4]
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x458074
push 0
call dword [sym.imp.USER32.dll_GetDC]
xor ebx, ebx
mov dword [ebp - 0x70], eax
push ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x6c], 0
push ecx
push ebx
push 1
push ebx
push dword [ebp - 0x94]
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0x28
push eax
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x40], 0x28
call dword [sym.imp.GDI32.dll_GetDIBits]
movups xmm0, xmmword [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x58], ebx
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x48], xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
movups xmmword [ebp - 0x68], xmm1
psrldq xmm1, 0xc
movd edx, xmm1
psrldq xmm0, 8
mov byte [ebp - 0x14], al
movd eax, xmm0
shr edx, 0x10
mov byte [ebp - 0x13], al
cmp dx, 8
jb 0x457e14
mov byte [ebp - 0x12], bl
jmp 0x457e1d
mov al, 2
mov cl, dl
shl al, cl
mov byte [ebp - 0x12], al
xor eax, eax
mov byte [ebp - 0x11], bl
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x54]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x60]
push 0
push 0
push edi
add eax, eax
mov word [ebp - 0xe], dx
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45801a
push 0
lea eax, [ebp - 0x6c]
push eax
push 0x28
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45801a
cmp dword [ebp - 0x6c], 0x28
jne 0x45801a
mov eax, dword [ebp - 0x60]
add edi, 0x28
movups xmm1, xmmword [ebp - 0x58]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x60], eax
movups xmm0, xmmword [ebp - 0x68]
movups xmmword [ebp - 0x30], xmm1
psrldq xmm1, 4
movd eax, xmm1
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [ebp - 0x48]
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00462af5
add esp, 4
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x40]
push 0
push ecx
push eax
push dword [ebp - 0x60]
push 0
push dword [ebp - 0x94]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, dword [ebp - 0x60]
jne 0x45800a
push 0
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45800a
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], eax
jne 0x45800a
push 1
add edi, eax
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0x28
push eax
push 0
push 1
push 0
push dword [ebp - 0x98]
xorps xmm0, xmm0
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x70]
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.GDI32.dll_GetDIBits]
movups xmm3, xmmword [ebp - 0x30]
movups xmm2, xmmword [ebp - 0x40]
movq xmm1, qword [ebp - 0x20]
movaps xmm0, xmm3
psrldq xmm0, 4
movd eax, xmm0
movups xmmword [ebp - 0x58], xmm3
add dword [ebp - 0xc], eax
movups xmmword [ebp - 0x30], xmm3
psrldq xmm3, 4
movd eax, xmm3
movups xmmword [ebp - 0x68], xmm2
push eax
movq qword [ebp - 0x48], xmm1
movups xmmword [ebp - 0x40], xmm2
movq qword [ebp - 0x20], xmm1
call fcn.00462af5
add esp, 4
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x40]
push 1
push ecx
push eax
push dword [ebp - 0x60]
push 0
push dword [ebp - 0x98]
push dword [ebp - 0x70]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp eax, dword [ebp - 0x60]
jne 0x45800a
push 0
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x90]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45800a
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], eax
jne 0x45800a
push 0
push 0
push dword [ebp - 0x74]
add edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x45800a
push 0
lea eax, [ebp - 0x6c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45800a
cmp dword [ebp - 0x6c], 0x10
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x45801a
push eax
call fcn.00462afe
add esp, 4
push dword [ebp - 0x70]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x94]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x98]
call dword [sym.imp.GDI32.dll_DeleteObject]
test ebx, ebx
je 0x458074
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], 0x10
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp + 0xc]
jl 0x457d50
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004626cb
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x45805a