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

Disassembly:
mov eax, 0x41d9ec
call fcn.00412384
mov eax, 0x1194
call fcn.004124b0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 8]
mov ecx, edi
call fcn.0040af46
push eax
mov ecx, edi
call fcn.0040af31
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040bb97
xor ebx, ebx
push ebx
call fcn.0040d108
lea eax, [ebp - 0x10]
push eax
xor edi, edi
push 0x41ea78
inc edi
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], ebx
call fcn.0040c829
lea eax, [ebp - 0x14]
push eax
push 0x41ea88
push ebx
call fcn.0040c829
add esp, 0x34
cmp dword [ebp - 0x10], ebx
je 0x405c01
cmp dword [ebp - 0x14], ebx
je 0x405c01
push ebx
push 0x41ea98
push ebx
call fcn.0040b8cd
add esp, 0xc
cmp dword [ebp - 0x10], edi
jne 0x405d1f
mov dword [ebp + 0x10], edi
call fcn.0040bb5d
cmp dword [esi + 0x268], ebx
mov dword [ebp + 8], eax
mov dword [esi + 0x50], edi
je 0x405cc1
mov dword [esi + 0x58], ebx
jmp 0x405cc1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405cd2
cmp dword [ebp + 0x10], ebx
je 0x405c65
push 0x41eaa8
call fcn.0040ed09
pop ecx
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov ecx, 0x80070204
cmp eax, ecx
je 0x405cd9
mov dword [ebp + 0x10], ebx
jmp 0x405cc1
lea ecx, [ebp - 0x9a0]
mov dword [esi + 0x4c], ebx
call fcn.00410b64
push dword [ebp + 0x18]
lea ecx, [ebp - 0x9a0]
push dword [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.00404346
push ebx
push ebx
lea ecx, [ebp - 0x9a0]
call fcn.0040ae2f
cmp eax, edi
mov dword [esi + 0x4c], edi
je 0x405cf9
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp eax, 0x80070204
je 0x405d61
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98c]
mov dword [ebp + 0x10], ebx
call fcn.00406494
lea eax, [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x405c2c
mov esi, 0x80004005
jmp 0x405cdb
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
call fcn.0040bb97
add esp, 0x18
mov eax, esi
jmp 0x405ef1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98c]
call fcn.00406494
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41eaac
mov dword [esi + 0x50], ebx
call fcn.0040f081
pop ecx
push ebx
push 0x41eab0
push ebx
call fcn.0040c9d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push dword [ebp + 0xc]
call edi
cmp eax, 4
jle 0x405d8d
push 0x41eac0
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 0x405d8d
push ebx
push edi
jmp 0x405ee4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040bb97
add esp, 0x18
lea ecx, [ebp - 0x98c]
call fcn.00406494
mov eax, 0x80070204
jmp 0x405ef1
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11a0]
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 0x405e22
push ebx
lea eax, [ebp - 0x450]
push eax
push ebx
lea eax, [ebp - 0x11a0]
push ebx
push eax
call fcn.00412976
lea eax, [ebp - 0x11a0]
push 1
push eax
call fcn.0040439b
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0xda0]
push str._s__x
push eax
call edi
lea eax, [ebp - 0xda0]
push 0x41ead0
push eax
call fcn.00412880
add esp, 0x34
test eax, eax
je 0x405e3e
push 1
push dword [ebp + 0xc]
call fcn.0040439b
push eax
lea eax, [ebp - 0xda0]
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 - 0xda0]
push eax
lea eax, [ebp - 0x450]
push eax
call edi
push str..exe
lea eax, [ebp - 0x450]
push eax
call edi
call fcn.0040ba6d
cmp eax, ebx
je 0x405ea3
push str.Using_Async_download
call fcn.0040c1fd
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 0x405ef1
cmp eax, 0x80070200
jne 0x405ef1
push str.Using_Sync_download
call fcn.0040c1fd
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 0x405eec
lea eax, [ebp - 0x450]
push eax
push 0x41eb14
push ebx
call fcn.0040c9d0
add esp, 0xc
push 1
lea ecx, [ebp - 0x450]
push ecx
mov eax, dword [esi]
push esi
call dword [eax + 0x24]
jmp 0x405ef1
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14