Function at 0x10003cb0
Capabilities:
Check if file exists
Delete file
Download url
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008678
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
lea edi, [esi + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x10003d58
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x100096c0
call fcn.100054d0
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.100044d0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.10005580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003d32
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 - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003d58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ebx, 0x1000966c
call fcn.100058b0
lea edx, [ebp - 0x10]
push edi
push edx
mov ebx, eax
mov dword [ebp - 4], 2
call fcn.10005800
add esp, 0x10
mov byte [ebp - 4], 4
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 0x10003da6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call edi
test eax, eax
je 0x10003ddc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [esi + 0x18], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x1000407e
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ebx, 0x100096d4
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
push edx
call edi
test eax, eax
jne 0x10003eb2
mov ecx, dword [esi + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 0x18], 1
cmp dword [ecx - 0xc], 0
je 0x10004041
mov edi, dword [ebp + 8]
push eax
lea edx, [ebp - 0x18]
push edx
lea ebx, [edi + 0x28]
call fcn.10005800
push eax
lea eax, [ebp + 8]
push eax
mov ebx, 0x1000969c
mov byte [ebp - 4], 6
call fcn.100058b0
add esp, 0x10
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 7
call fcn.10005580
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003e72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003e95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x28]
push eax
push esi
push 0x100094f0
push 0x100094e4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x10004041
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ebx, 0x10009690
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx - 0xc], 0
lea ebx, [esi + 0x10]
jne 0x10003eec
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
push 0
push 0
push edx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1000401e
mov eax, dword [esi]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [ebp - 0x10]
push eax
call edi
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x10003fa3
mov edx, dword [0x1000c028]
mov eax, dword [edx + 0xc]
mov ecx, 0x1000c028
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.100045b0
test eax, eax
je 0x10003f63
lea ecx, [ebp - 0x18]
push ecx
mov eax, ebx
call fcn.10005ab0
add esp, 4
test al, al
je 0x10003f97
mov edx, dword [ebp - 0x14]
push edx
call edi
lea eax, [ebp - 0x18]
call fcn.10005eb0
lea eax, [ebp - 0x14]
call fcn.10005eb0
lea eax, [ebp - 0x1c]
call fcn.10005eb0
lea eax, [ebp - 0x10]
call fcn.10005eb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.10005eb0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1000401e
mov edx, dword [ebx]
mov dword [esi + 0x18], 1
cmp dword [edx - 0xc], 0
je 0x1000401e
mov edi, dword [ebp + 8]
push ebx
lea eax, [ebp - 0x24]
push eax
lea ebx, [edi + 0x28]
call fcn.10005800
push eax
lea ecx, [ebp + 8]
push ecx
mov ebx, 0x1000969c
mov byte [ebp - 4], 0xa
call fcn.100058b0
add esp, 0x10
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 0xb
call fcn.10005580
lea eax, [ebp + 8]
call fcn.10005eb0
lea eax, [ebp - 0x24]
call fcn.10005eb0
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x28]
push eax
push esi
push 0x100094f0
push 0x100094e4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 4], 5
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 0x10004041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004064
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 - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000408a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4