Function at 0x466280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x5c524c]
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 0x4662ce
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047268d
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 0x46664a
cmp dword [ebp - 0x78], 6
jne 0x46664a
mov edi, ebx
xor eax, eax
shl edi, 4
add edi, 6
mov dword [ebp - 0x80], eax
test ebx, ebx
jle 0x466645
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 0x466664
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 0x466404
mov byte [ebp - 0x12], bl
jmp 0x46640d
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 0x46660a
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 0x46660a
cmp dword [ebp - 0x6c], 0x28
jne 0x46660a
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.00472ad5
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 0x4665fa
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 0x4665fa
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], eax
jne 0x4665fa
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.00472ad5
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 0x4665fa
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 0x4665fa
mov eax, dword [ebp - 0x54]
cmp dword [ebp - 0x6c], eax
jne 0x4665fa
push 0
push 0
push dword [ebp - 0x74]
add edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4665fa
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 0x4665fa
cmp dword [ebp - 0x6c], 0x10
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x46660a
push eax
call fcn.00472ade
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 0x466664
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], 0x10
inc eax
mov dword [ebp - 0x80], eax
cmp eax, dword [ebp + 0xc]
jl 0x466340
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.0047268d
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x46664a