Function at 0x5d3b20
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693082
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x74e694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
call fcn.005c8900
mov ecx, accept
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, 0xb
jb 0x5d3ebd
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x5d3b8d
mov ecx, dword [eax]
push 0xb
push str._tmp__d.tmp
push edx
push ecx
push eax
push dword [ebp - 0x438]
lea ecx, [ebp - 0x410]
call fcn.005b5360
cmp dword [ebp - 0x3fc], 0x10
lea esi, [ebp - 0x410]
cmovae esi, dword [ebp - 0x410]
call fcn.0066f4cd
push eax
lea eax, [ebp - 0x3f8]
push esi
push eax
call fcn.00517070
mov edx, dword [ebp - 0x3fc]
add esp, 0xc
cmp edx, 0x10
jb 0x5d3c0c
mov ecx, dword [ebp - 0x410]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d3c02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d3ec2
push edx
push ecx
call fcn.00663ac7
add esp, 8
lea ecx, [ebp - 0x3f8]
mov dword [ebp - 0x410], 0
mov dword [ebp - 0x400], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3fc], 0xf
mov byte [ebp - 0x410], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5d3c40
sub ecx, edx
lea eax, [ebp - 0x3f8]
push ecx
push eax
lea ecx, [ebp - 0x410]
call fcn.004484a0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov byte [ebp - 4], 1
jb 0x5d3c6a
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x410]
push eax
push 0
call fcn.005a5ba0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x418], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.005c34c0
mov edx, dword [ebp - 0x414]
add esp, 8
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x5d3d19
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d3d0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d3ec7
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov edx, dword [ebp - 0x3fc]
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x5d3d72
mov ecx, dword [ebp - 0x410]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d3d68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d3ec7
push edx
push ecx
call fcn.00663ac7
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x434]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d3e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.005c5710
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, 0x74e0c8
push eax
call fcn.005a3660
mov edx, dword [ebp - 0x3fc]
cmp edx, 0x10
jb 0x5d3df8
mov ecx, dword [ebp - 0x410]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5d3dee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5d3ecc
push edx
push ecx
call fcn.00663ac7
add esp, 8
mov byte [ebp - 0x429], 0
jmp 0x5d3e89
push 0
lea eax, [ebp - 0x438]
push eax
push 9
push str.test_data
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5d3e2f
cmp dword [ebp - 0x438], 9
mov byte [ebp - 0x429], 1
je 0x5d3e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.005c5710
add esp, 8
lea eax, [ebp - 0x410]
mov ecx, 0x74e0c8
push eax
call fcn.005a3660
lea ecx, [ebp - 0x410]
call fcn.00448860
mov byte [ebp - 0x429], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x434]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
jne 0x5d3e89
push dword [ebp - 0x434]
call esi
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x5d3e9c
push eax
call fcn.0066a657
add esp, 4
mov al, byte [ebp - 0x429]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00663ada
mov esp, ebp
pop ebp
ret
call fcn.00446f60
call fcn.0066a5fb
call fcn.0066a5fb
call fcn.0066a5fb
int3