Function at 0x4588b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467fb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x3c], 0x469540
mov dword [ebp - 0x1c], 0x469538
jne 0x4588e8
mov eax, 0x483644
lea ecx, [ebp + 0xb]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00408d40
lea edx, [ebp - 0x68]
mov dword [ebp - 4], 0
push edx
call fcn.00458500
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040198d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x48]
neg eax
sbb eax, eax
mov byte [ebp - 4], 5
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x68]
mov dword [esi], eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x54]
and ecx, eax
call fcn.00403f71
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x64]
neg ecx
sbb ecx, ecx
push 1
and ecx, edx
mov byte [ebp - 4], 4
call fcn.00401856
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 3
mov ecx, dword [eax + 4]
mov edx, dword [ebp + ecx - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [ebp + 8], eax
lea esi, [eax + eax + 2]
mov eax, dword [ebp - 0x24]
cmp esi, eax
jae 0x4589b1
test ecx, ecx
jne 0x4589cf
push ecx
call fcn.0043311a
shr esi, 6
inc esi
shl esi, 6
push esi
mov dword [ebp - 0x24], esi
call fcn.00433b07
mov ecx, eax
add esp, 8
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp - 0x34]
test ebx, ebx
jne 0x4589e3
mov ebx, 0x469558
test ebx, ebx
jne 0x4589e3
xor eax, eax
jmp 0x458a09
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00434210
mov eax, esp
push 0
push esi
push ebx
push eax
call fcn.0040d6bf
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.00434260
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
add esp, 8
lea eax, [ebp - 0x14]
push 0
push eax
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x458a38
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x458a38
push edi
call eax
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, ecx
mov edx, dword [eax]
mov esi, dword [edx + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
lea esi, [ebp - 0x3c]
neg esi
sbb esi, esi
lea eax, [ebp - 0x28]
and esi, eax
mov ecx, dword [esi]
push ecx
call fcn.0043311a
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push edx
call edi
lea esi, [ebp - 0x3c]
lea eax, [ebp - 0x38]
neg esi
sbb esi, esi
xor ebx, ebx
and esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x458aa4
mov cl, byte [eax - 1]
test cl, cl
je 0x458a9e
cmp cl, 0xff
je 0x458a9e
dec cl
mov byte [eax - 1], cl
jmp 0x458aa4
add eax, 0xfffffffe
push eax
call edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + edx - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4