Function at 0x1001864f
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d9d8
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.1003f210
mov eax, dword [0x1007b4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1064], ebx
call fcn.1001a117
test eax, eax
jne 0x100186a0
xor eax, eax
jmp 0x10018945
push ebx
call fcn.1000fff7
pop ecx
test eax, eax
je 0x10018699
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
push 7
push str.http:__
push esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x100187df
push 8
push str.https:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x100187df
push 8
push str.pdown:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x100187cc
push esi
lea ecx, [ebp - 0x105c]
call fcn.1000a8ed
push ebx
push str.http:__
lea ecx, [ebp - 0x105c]
mov dword [ebp - 4], ebx
call fcn.10018d60
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1001875a
push ebx
push str.https:__
lea ecx, [ebp - 0x105c]
call fcn.10018d60
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x1001875a
mov ecx, dword [ebp - 0x105c]
lea ecx, [ecx - 0x10]
call fcn.10009de4
jmp 0x10018699
mov eax, dword [ebp - 0x105c]
mov eax, dword [eax - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x105c]
push eax
lea eax, [ebp - 0x1060]
push eax
call fcn.1000fae0
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 1
call fcn.1000dcf4
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.10009de4
push dword [ebp - 0x1064]
mov ecx, edi
push dword [ebp - 0x105c]
call fcn.1001a150
mov ecx, dword [ebp - 0x105c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x1060], eax
call fcn.10009de4
mov eax, dword [ebp - 0x1060]
jmp 0x100187ed
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.10019ca1
jmp 0x10018945
push dword [ebp - 0x1064]
mov ecx, edi
push esi
call fcn.1001a150
test eax, eax
jne 0x10018945
cmp dword [edi + 0x10], ebx
jne 0x10018699
push 8
push str.pdown:__
push esi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1001883a
push 0x824
lea eax, [ebp - 0x1058]
mov ecx, edi
push eax
push esi
call fcn.10018e28
test eax, eax
lea ecx, [ebp - 0x1058]
cmove ecx, esi
mov esi, ecx
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x105c]
call fcn.1000a8c4
push 0x3f
push esi
mov dword [ebp - 4], 2
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
jne 0x1001887e
push 0x10061f64
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x1001889a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_t_d
jmp 0x1001888b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._st_d
lea eax, [ebp - 0x105c]
push eax
call fcn.1000f096
add esp, 0x10
mov esi, dword [ebp - 0x105c]
cmp dword [edi + 0x10], ebx
jne 0x1001893b
cmp dword [esi - 0xc], 0x824
jb 0x100188f1
push 0x823
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x105c]
call fcn.10011076
push eax
lea ecx, [ebp - 0x105c]
mov byte [ebp - 4], 3
call fcn.1000dcf4
mov ecx, dword [ebp - 0x1060]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.10009de4
mov esi, dword [ebp - 0x105c]
push edi
push ebx
push dword [ebp - 0x1064]
push esi
push ebx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x1001891d
cmp dword [edi + 0x14], ebx
je 0x10018918
push dword [edi + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x1c]
push 1
call dword [eax + 0x30]
xor eax, eax
inc eax
jmp 0x10018939
cmp dword [edi + 0x14], ebx
je 0x10018931
push dword [edi + 0x1c]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x18]
push 2
call dword [eax + 0x30]
mov eax, ebx
mov dword [0x1007d9dc], ebx
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.10009de4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003eec9
leave
ret 0x1c