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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575831
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x5d61f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 1
test ecx, ecx
je 0x40148d
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041a200
add esp, 4
test eax, eax
je 0x40148d
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401462
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x401483
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x401840
push 0
push 0
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
call fcn.00427a1d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x838], 0
cmp dword [eax - 0xc], 0
mov dword [ebp - 0x834], 0
jl 0x4017eb
push str.http
push eax
call fcn.00549bff
add esp, 8
test eax, eax
je 0x4017eb
sub eax, dword [ebp + 8]
sar eax, 1
js 0x4017eb
mov byte [ebp - 4], 3
call fcn.004290db
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40151a
push 0x80004005
call fcn.00402650
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x83c], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x818]
mov dword [esi], eax
call fcn.00401250
add esp, 4
push eax
lea ecx, [ebp - 0x83c]
mov byte [ebp - 4], 5
call fcn.00402530
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x401589
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x83c]
cmp dword [esi - 0xc], 0
je 0x4015a5
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 4
lea eax, [ebp - 0x818]
push eax
push 2
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x818], 0x7d0
call fcn.00428a01
push 0
push 0
push 0x80400002
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x830]
call fcn.00428379
mov ebx, eax
mov ecx, ebx
mov dword [ebp - 0x838], ebx
call fcn.00401360
test eax, eax
je 0x40163a
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401610
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.00427cfa
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x401813
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x834], eax
cmp eax, 0xffffffff
jne 0x4016a7
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40167d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.00427cfa
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x401813
mov dword [ebp - 0x81c], 0
mov eax, dword [ebx]
push 0x400
lea ecx, [ebp - 0x814]
push ecx
mov ecx, ebx
call dword [eax + 0x38]
push 0
lea ecx, [ebp - 0x81c]
push ecx
push eax
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x814]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x818], 0
jg 0x4016b1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x838], 0
call fcn.00427fe6
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40173e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.00427cfa
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jmp 0x401458
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.00427cfa
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40181d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40183e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054940a
mov esp, ebp
pop ebp
ret