Function at 0x45872b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557a74
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 0x458775
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
jmp 0x45877b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
jne 0x45877b
xor eax, eax
jne 0x45877b
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 0x4587ae
call fcn.00458cbc
mov dword [ebp - 0x1c], eax
jmp 0x4587c0
xor eax, eax
jne 0x4587ae
xor eax, eax
jne 0x4587ae
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x4587f6
mov byte [ebp - 0x1d], 0
mov dword [ebp - 4], 2
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4587ee
cmp dword [ebp - 0x10], 0
je 0x4587ee
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1d]
jmp 0x458a14
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x50]
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004593c9
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x458841
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x458839
cmp dword [ebp - 0x10], 0
je 0x458839
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1e]
jmp 0x458a14
xor eax, eax
jne 0x458841
xor eax, eax
jne 0x458841
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 0x458882
call fcn.00458cbc
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x458882
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
jmp 0x458886
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x4588bc
mov byte [ebp - 0x1f], 0
mov dword [ebp - 4], 4
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4588b4
cmp dword [ebp - 0x10], 0
je 0x4588b4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x1f]
jmp 0x458a14
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0x50], 0
ja 0x4588fd
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x4588f5
cmp dword [ebp - 0x10], 0
je 0x4588f5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov al, byte [ebp - 0x20]
jmp 0x458a14
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ecx + 0x48]
ja 0x45892b
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 0x458938
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 0x458981
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4c], eax
xor eax, eax
jne 0x45894b
xor eax, eax
jne 0x45894b
cmp dword [ebp - 0x50], 0
jne 0x45895f
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 0x458981
call fcn.00458cbc
cmp dword [ebp - 0x18], 0
jbe 0x4589ca
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x5c], eax
xor eax, eax
jne 0x458994
xor eax, eax
jne 0x458994
cmp dword [ebp - 0x60], 0
jne 0x4589a8
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 0x4589ca
call fcn.00458cbc
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 0x458a11
cmp dword [ebp - 0x10], 0
je 0x458a11
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