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

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x49ee6e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4c8a00]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], 1
cmp dword [ebp + 0x814], esi
je 0x401743
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00402640
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042fa70
add esp, 4
cmp eax, esi
je 0x401743
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401710
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401b75
push esi
push esi
push esi
push esi
push 1
push esi
lea ecx, [ebp - 0x38]
call fcn.0044e68f
mov eax, dword [ebp + 0x80c]
cmp dword [eax - 0xc], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
jl 0x40177f
push 0x4ab764
push eax
call fcn.0046c778
add esp, 8
cmp eax, esi
je 0x40177f
sub eax, dword [ebp + 0x80c]
sar eax, 1
jns 0x4017e3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0044edbb
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401b73
mov byte [ebp - 4], 3
call fcn.0044d2b5
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x401801
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov ebx, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x80c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14], esp
mov edi, esp
push eax
call fcn.00402640
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.0041eec0
add esp, 8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00402260
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x20]
cmp dword [esi - 0xc], 0
je 0x40188d
mov ecx, dword [ebp + 0x80c]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push ebx
lea edx, [ebp - 0x14]
push edx
push 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0x7d0
call fcn.0044de83
mov eax, dword [ebp + 0x80c]
push 0
push 0
push 0x80400002
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.0044f07d
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.00401ba0
test eax, eax
je 0x401957
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0044edbb
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401b73
mov ecx, dword [ebp + 0x810]
push 0
push 0x80
push 2
push 0
push 2
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x401a07
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4019a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0044edbb
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401b73
mov dword [ebp - 0x18], 0
mov edi, edi
mov edx, dword [edi]
mov edx, dword [edx + 0x34]
push 0x400
lea eax, [ebp]
push eax
mov ecx, edi
call edx
push 0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push esi
lea ecx, [ebp]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
jg 0x401a10
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 1
mov ecx, edi
call eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
call fcn.0044ec66
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0044edbb
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x810]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401b75
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 + 0x800]
xor ecx, ebp
call fcn.0046c016
add ebp, 0x804
mov esp, ebp
pop ebp
ret