Function at 0x10003180
Capabilities:
Delete file
Download url
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008798
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1000c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [edi + 8]
mov eax, dword [eax - 0xc]
lea ebx, [edi + 8]
mov dword [ebp - 0x24], ebx
test eax, eax
je 0x100033f7
mov ecx, dword [edi + 0xc]
cmp dword [ecx - 0xc], 0
je 0x100033f7
lea esi, [edx + 4]
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x28], esi
test eax, eax
jne 0x10003214
lea eax, [ebp - 0x14]
push eax
call fcn.10004bc0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10005580
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10003214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
mov eax, esi
call fcn.10005b70
add esp, 4
test al, al
je 0x100033f7
lea esi, [ebp - 0x1c]
call fcn.10004960
mov ecx, esi
push ecx
lea edx, [ebp - 0x10]
push edx
mov ebx, 0x10009624
mov dword [ebp - 4], 1
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x14]
cmp dword [ecx - 0xc], 0
jne 0x1000326b
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 0xc]
push 0
push 0
push edx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x1000339d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ebx, 0x1000963c
call fcn.100058b0
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call ebx
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
je 0x1000330d
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov edx, dword [0x1000c028]
mov eax, dword [edx + 0xc]
mov ecx, 0x1000c028
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.100045b0
test eax, eax
je 0x10003301
lea ecx, [ebp - 0x14]
push ecx
lea eax, [edi + 0x14]
call fcn.10005ab0
add esp, 4
test al, al
je 0x10003301
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.10005eb0
lea esi, [ebp - 0x14]
call fcn.10004ad0
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
push ecx
push eax
call ebx
mov esi, eax
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 0x10003345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x1000337a
lea esi, [ebp - 0x20]
call fcn.10004ad0
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call ebx
mov esi, eax
lea eax, [ebp - 0x20]
call fcn.10005eb0
test esi, esi
je 0x1000336f
mov dword [edi + 0x18], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
call fcn.10005580
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000339d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100033c0
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100033fe
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 esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret