Function at 0x4865b0
Capabilities:
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5632f9
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x651788]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x651788]
xor eax, esp
push eax
lea eax, [esp + 0x4a4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4b4]
mov esi, dword [esp + 0x4b8]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x4c]
call fcn.00401b00
xor ebx, ebx
push 0x206
lea eax, [esp + 0x96]
push ebx
push eax
mov dword [esp + 0x4b8], ebx
mov word [esp + 0x9c], bx
call fcn.004afb50
push 0x206
lea ecx, [esp + 0x2aa]
push ebx
push ecx
mov word [esp + 0x2b0], bx
call fcn.004afb50
add esp, 0x18
lea edx, [esp + 0x90]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x486706
push 5
mov esi, 7
push 0x582734
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
call fcn.00402120
push 0xc
push str.DownloadFlag
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b4], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402120
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
mov byte [esp + 0x4b4], 2
call eax
mov edi, 8
cmp dword [esp + 0x2c], edi
jb 0x4866dd
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
jb 0x4869f9
mov edx, dword [esp + 0x34]
push edx
call fcn.00492573
add esp, 4
jmp 0x4869f9
lea eax, [esp + 0x298]
push eax
push esi
call fcn.0046f570
mov ebp, 7
lea eax, [esp + 0x98]
add esp, 8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486733
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x38]
call fcn.00402120
mov eax, esi
mov byte [esp + 0x4ac], 3
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486770
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402120
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x4b4], 4
call fcn.00401ba0
mov ebp, 8
cmp dword [esp + 0x2c], ebp
movzx esi, al
jb 0x4867c0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x48], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov byte [esp + 0x4ac], bl
jb 0x4867eb
mov edx, dword [esp + 0x34]
push edx
call fcn.00492573
add esp, 4
cmp esi, ebx
lea ecx, [esp + 0x14]
jne 0x48686e
push 0x582734
call fcn.00401d20
push str.DownloadFlag
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 5
call fcn.00401d20
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov byte [esp + 0x4b4], 6
call eax
cmp dword [esp + 0x48], ebp
jb 0x486841
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x4869f9
mov edx, dword [esp + 0x18]
push edx
call fcn.00492573
add esp, 4
jmp 0x4869f9
push 0x5826c4
call fcn.00401d20
push str.DownloadFlag
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 7
call fcn.00401d20
mov eax, dword [edi]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov byte [esp + 0x4b4], 8
call eax
cmp dword [esp + 0x48], ebp
jb 0x4868bc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x2c], ebp
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0x4ac], bl
jb 0x4868e8
mov edx, dword [esp + 0x18]
push edx
call fcn.00492573
add esp, 4
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00401d20
lea eax, [esp + 0x298]
mov byte [esp + 0x4ac], 9
lea edx, [eax + 2]
jmp 0x486920
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486920
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x29c]
push ecx
lea ecx, [esp + 0x60]
call fcn.00403e10
mov esi, dword [esp + 0x54]
mov ecx, esi
call fcn.00486500
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00471a50
add esp, 8
mov ecx, dword [esp + 0x78]
mov edi, 0x10
cmp dword [esp + 0x8c], edi
mov byte [esp + 0x4ac], 0xa
jae 0x48697c
lea ecx, [esp + 0x78]
cmp dword [esi + 0x54], ebp
jb 0x486986
mov eax, dword [esi + 0x40]
jmp 0x486989
lea eax, [esi + 0x40]
push ebx
push ecx
push eax
call fcn.004836d0
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp dword [esp + 0x70], ebp
jae 0x4869a2
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x8c], edi
jb 0x4869bf
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00492573
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x4869e8
mov edx, dword [esp + 0x5c]
push edx
call fcn.00492573
add esp, 4
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.00401b90
mov ecx, dword [esp + 0x4a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48c]
xor ecx, esp
call fcn.004aeca3
add esp, 0x49c
ret 8