Function at 0x405d66
Capabilities:
Get common file path
Parse url

Disassembly:
mov eax, 0x41dd1c
call fcn.004126b4
mov eax, 0x1394
call fcn.004127e0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x20]
lea edi, [esi + 8]
push dword [ebp + 0x1c]
mov ecx, edi
call fcn.0040b180
push eax
mov ecx, edi
call fcn.0040b16b
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040bde1
xor ebx, ebx
push ebx
call fcn.0040d3f0
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x41faa8
inc edi
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
call fcn.0040cb11
lea eax, [ebp - 0x14]
push eax
push 0x41fab8
push ebx
call fcn.0040cb11
add esp, 0x3c
cmp dword [ebp - 0x10], ebx
je 0x405df5
cmp dword [ebp - 0x14], ebx
je 0x405df5
push ebx
push 0x41fac8
push ebx
call fcn.0040bb17
add esp, 0xc
cmp dword [ebp - 0x10], edi
jne 0x405f1b
mov dword [ebp + 0x10], edi
call fcn.0040bda7
cmp dword [esi + 0x268], ebx
mov dword [ebp + 8], eax
mov dword [esi + 0x50], edi
je 0x405ebb
mov dword [esi + 0x58], ebx
jmp 0x405ebb
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405ecc
cmp dword [ebp + 0x10], ebx
je 0x405e59
push 0x41fad8
call fcn.0040f033
pop ecx
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, 0x80070204
cmp eax, ecx
je 0x405ed3
mov dword [ebp + 0x10], ebx
jmp 0x405ebb
lea ecx, [ebp - 0xba0]
mov dword [esi + 0x4c], ebx
call fcn.00410e82
push dword [ebp + 0x20]
lea ecx, [ebp - 0xba0]
push dword [ebp + 0x1c]
mov dword [ebp - 4], ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004044e3
push ebx
push ebx
lea ecx, [ebp - 0xba0]
call fcn.0040b069
cmp eax, edi
mov dword [esi + 0x4c], edi
je 0x405ef5
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp eax, 0x80070204
je 0x405f5d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8c]
mov dword [ebp + 0x10], ebx
call fcn.004066ce
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x405e20
mov esi, 0x80004005
jmp 0x405ed5
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040bde1
add esp, 0x20
mov eax, esi
jmp 0x4060ef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8c]
call fcn.004066ce
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41fadc
mov dword [esi + 0x50], ebx
call fcn.0040f3ab
pop ecx
push ebx
push 0x41fae0
push ebx
call fcn.0040ccb8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push dword [ebp + 0xc]
call edi
cmp eax, 4
jle 0x405f8b
push 0x41faf0
push dword [ebp + 0xc]
call edi
mov edi, dword [ebp + 0xc]
lea eax, [eax + edi - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405f8b
push ebx
push edi
jmp 0x4060e2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040bde1
add esp, 0x20
lea ecx, [ebp - 0xb8c]
call fcn.004066ce
mov eax, 0x80070204
jmp 0x4060ef
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x13a0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x20], 0x400
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, ebx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x406020
push ebx
lea eax, [ebp - 0x450]
push eax
push ebx
lea eax, [ebp - 0x13a0]
push ebx
push eax
call fcn.00412ca6
lea eax, [ebp - 0x13a0]
push 1
push eax
call fcn.00404589
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xfa0]
push str._s__x
push eax
call edi
lea eax, [ebp - 0xfa0]
push 0x41fb00
push eax
call fcn.00412bb0
add esp, 0x34
test eax, eax
je 0x40603c
push 1
push dword [ebp + 0xc]
call fcn.00404589
push eax
lea eax, [ebp - 0xfa0]
push str.jupdate__x
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x450]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xfa0]
push eax
lea eax, [ebp - 0x450]
push eax
call edi
push str..exe
lea eax, [ebp - 0x450]
push eax
call edi
call fcn.0040bcb7
cmp eax, ebx
je 0x4060a1
push str.Using_Async_download
call fcn.0040c4e5
mov eax, dword [esi]
pop ecx
lea ecx, [ebp - 0x450]
push ecx
push dword [ebp + 0xc]
push esi
call dword [eax + 0x14]
cmp eax, ebx
jge 0x4060ef
cmp eax, 0x80070200
jne 0x4060ef
push str.Using_Sync_download
call fcn.0040c4e5
mov eax, dword [esi]
pop ecx
push 1
push 1
lea ecx, [ebp - 0x450]
push ecx
push dword [ebp + 0xc]
push esi
call dword [eax + 0x1c]
test eax, eax
jl 0x4060ea
lea eax, [ebp - 0x450]
push eax
push 0x41fb44
push ebx
call fcn.0040ccb8
add esp, 0xc
push 1
lea ecx, [ebp - 0x450]
push ecx
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
jmp 0x4060ef
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c