Function at 0x458790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557b74
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4587da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x4587e0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
jne 0x4587e0
xor eax, eax
jne 0x4587e0
push 0
push 0x80
push 4
push 0
push 0
push 3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x458813
call fcn.00458d21
mov dword [ebp - 0x1c], eax
jmp 0x458825
xor eax, eax
jne 0x458813
xor eax, eax
jne 0x458813
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x45885b
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x458853
cmp dword [ebp - 0x10], 0
je 0x458853
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1d]
jmp 0x458a79
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x50]
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0045942e
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4588a6
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x45889e
cmp dword [ebp - 0x10], 0
je 0x45889e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1e]
jmp 0x458a79
xor eax, eax
jne 0x4588a6
xor eax, eax
jne 0x4588a6
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x4588e7
call fcn.00458d21
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x4588e7
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x4588eb
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x458921
mov byte [ebp - 0x1f], 0
mov dword [ebp - 4], 4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x458919
cmp dword [ebp - 0x10], 0
je 0x458919
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1f]
jmp 0x458a79
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x50], 0
ja 0x458962
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x45895a
cmp dword [ebp - 0x10], 0
je 0x45895a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x20]
jmp 0x458a79
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ecx + 0x48]
ja 0x458990
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x44]
sub eax, dword [ecx + 0x48]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4c]
sub eax, dword [ecx + 0x40]
mov dword [ebp - 0x18], eax
jmp 0x45899d
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x14], eax
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
jbe 0x4589e6
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x4589b0
xor eax, eax
jne 0x4589b0
cmp dword [ebp - 0x50], 0
jne 0x4589c4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], eax
push 0
push dword [ebp - 0x50]
push dword [ebp - 0x14]
push dword [ebp - 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x4589e6
call fcn.00458d21
cmp dword [ebp - 0x18], 0
jbe 0x458a2f
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x5c], eax
xor eax, eax
jne 0x4589f9
xor eax, eax
jne 0x4589f9
cmp dword [ebp - 0x60], 0
jne 0x458a0d
lea eax, [ebp - 0x58]
mov dword [ebp - 0x60], eax
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x18]
push dword [ebp - 0x5c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x458a2f
call fcn.00458d21
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0x48], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x40]
mov dword [eax + 0x4c], ecx
mov eax, dword [ebp - 0x64]
and dword [eax + 0x50], 0
mov byte [ebp - 0x21], 1
mov dword [ebp - 4], 6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x458a76
cmp dword [ebp - 0x10], 0
je 0x458a76
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4