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

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x450c8e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x468850]
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 0x4012d3
mov eax, dword [ebp + 0x810]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00402180
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00410390
add esp, 4
cmp eax, esi
je 0x4012d3
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 0x4012a0
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 0x4012c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401705
push esi
push esi
push esi
push esi
push 1
push esi
lea ecx, [ebp - 0x38]
call fcn.0041adaf
mov eax, dword [ebp + 0x80c]
cmp dword [eax - 0xc], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
jl 0x40130f
push str.http
push eax
call fcn.004384c8
add esp, 8
cmp eax, esi
je 0x40130f
sub eax, dword [ebp + 0x80c]
sar eax, 1
jns 0x401373
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0041b469
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 0x401341
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 0x401703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401703
mov byte [ebp - 4], 3
call fcn.00419d0b
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x401391
push 0x80004005
call fcn.00401090
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.00402180
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [edi], eax
call fcn.00410a40
add esp, 8
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00401dd0
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 0x401400
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 0x40141d
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.0041a598
mov eax, dword [ebp + 0x80c]
push 0
push 0
push 0x80400002
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.0041b72b
mov edi, eax
mov ecx, edi
mov dword [ebp - 0x24], edi
call fcn.00401730
test eax, eax
je 0x4014e7
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 0x401483
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.0041b469
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 0x4014b5
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 0x401703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401703
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 0x401597
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 0x401533
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.0041b469
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 0x401565
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 0x401703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401703
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 0x4015a0
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.0041b386
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 0x401617
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.0041b469
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 0x401649
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 0x4012c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x401705
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.00437d66
add ebp, 0x804
mov esp, ebp
pop ebp
ret