Function at 0x45d480
Capabilities:
Check if file exists
Download url
Query or enumerate registry value
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c8
mov eax, dword [0x48d740]
xor eax, ebp
mov dword [ebp - 0x84], eax
lea ecx, [ebp + 8]
call fcn.00402e50
movzx eax, al
test eax, eax
je 0x45d4b2
lea ecx, [ebp + 8]
call fcn.00404e70
jmp 0x45dcc1
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401880
lea ecx, [ebp + 8]
call fcn.00404b20
push 0
push str.http:__
lea ecx, [ebp + 8]
call fcn.00404a50
cmp eax, 0xffffffff
je 0x45d50f
mov edx, dword [0x4923a8]
push edx
push str._sgotsoft.xml
lea eax, [ebp - 0x1c]
push eax
call fcn.00405b30
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004024e0
push eax
lea ecx, [ebp + 8]
call fcn.004024e0
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
lea ecx, [ebp - 0x1c]
call fcn.004024e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d537
lea ecx, [ebp - 0x1c]
call fcn.00404e70
lea ecx, [ebp + 8]
call fcn.00404e70
jmp 0x45dcc1
mov dword [ebp - 0x18], 0
push 0x47a700
lea ecx, [ebp - 0x1c]
call fcn.004024e0
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0043d304
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x45d573
lea ecx, [ebp - 0x1c]
call fcn.00404e70
lea ecx, [ebp + 8]
call fcn.00404e70
jmp 0x45dcc1
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0042b52a
lea ecx, [ebp - 0x24]
call fcn.00404e50
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042ba90
test eax, eax
je 0x45dc95
push 0
push str._item
lea ecx, [ebp - 0x24]
call fcn.00404a50
cmp eax, 0xffffffff
je 0x45dc90
push 0
push str.name
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 6
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a730
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a734
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a748
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a74c
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 0xc
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a764
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a768
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 7
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a778
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0x47a77c
lea edx, [ebp - 0x30]
push edx
call fcn.00404d10
add esp, 8
movzx eax, al
test eax, eax
je 0x45d6e2
lea ecx, [ebp - 0x30]
call fcn.00404e70
lea ecx, [ebp - 0x50]
call fcn.00404e70
lea ecx, [ebp - 0x58]
call fcn.00404e70
lea ecx, [ebp - 0x6c]
call fcn.00404e70
jmp 0x45d595
push 0
push 0x47a780
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a794
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a798
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 9
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a7ac
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a7b0
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 8
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a7c0
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00404c20
push 0
push 0x47a7c4
lea ecx, [ebp - 0x24]
call fcn.00404a50
add eax, 5
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.004047b0
push 0
push 0x47a7d0
lea ecx, [ebp - 0x24]
call fcn.00404a50
push eax
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404c20
lea ecx, [ebp - 0x4c]
call fcn.00404e50
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0x47a7d4
lea eax, [ebp - 0x4c]
push eax
call fcn.00405b30
add esp, 0x24
lea ecx, [ebp - 0x2c]
call fcn.00404e50
mov ecx, dword [ebp - 0x28]
push ecx
push 0x47a800
lea edx, [ebp - 0x2c]
push edx
call fcn.00405b30
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00404e50
mov eax, dword [ebp - 0x28]
push eax
push str.softshortname_d
lea ecx, [ebp - 0x40]
push ecx
call fcn.00405b30
add esp, 0xc
lea ecx, [ebp - 0x74]
call fcn.00404e50
mov edx, dword [ebp - 0x28]
push edx
push 0x47a838
lea eax, [ebp - 0x74]
push eax
call fcn.00405b30
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00404e50
mov ecx, dword [ebp - 0x28]
push ecx
push str.softurl_d
lea edx, [ebp - 0x48]
push edx
call fcn.00405b30
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x194], esp
lea eax, [ebp - 0x6c]
push eax
call fcn.00401880
push ecx
mov ecx, esp
mov dword [ebp - 0x198], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.00401880
call fcn.0045b590
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x19c], esp
lea eax, [ebp - 0x4c]
push eax
call fcn.00401880
push ecx
mov ecx, esp
mov dword [ebp - 0x1a0], esp
lea edx, [ebp - 0x48]
push edx
call fcn.00401880
call fcn.0045b590
add esp, 8
push ecx
mov ecx, esp
mov dword [ebp - 0x1a4], esp
lea eax, [ebp - 0x50]
push eax
call fcn.00401880
push ecx
mov ecx, esp
mov dword [ebp - 0x1a8], esp
lea edx, [ebp - 0x40]
push edx
call fcn.00401880
call fcn.0045b590
add esp, 8
mov dword [ebp - 0x5c], reloc.OLEAUT32.dll_SysReAllocString
push str.HKCU
lea eax, [ebp - 0x3c]
push eax
call fcn.00402e30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45d91b
mov dword [ebp - 0x5c], SysReAllocString
jmp 0x45d93a
push str.HKCT
lea edx, [ebp - 0x3c]
push edx
call fcn.00402e30
add esp, 8
movzx eax, al
test eax, eax
je 0x45d93a
mov dword [ebp - 0x5c], SysReAllocString
push 0x47a87c
lea ecx, [ebp - 0x38]
call fcn.00401d70
call fcn.00403480
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
call fcn.004024e0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45d96c
mov dword [ebp - 0x1b4], 0
jmp 0x45d9cd
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3fffffff
jle 0x45d991
mov dword [ebp - 0x1b8], 0
jmp 0x45d9c1
mov eax, dword [ebp - 0x34]
shl eax, 1
call fcn.00445230
mov dword [ebp - 0x1bc], esp
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x34]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x1bc]
push edx
call fcn.00405a20
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x70]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45dad7
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], 1
mov byte [ebp - 0x190], 0
push 0x103
push 0
lea ecx, [ebp - 0x18f]
push ecx
call fcn.0043aa80
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004024e0
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45da39
mov dword [ebp - 0x1c0], 0
jmp 0x45da9a
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3fffffff
jle 0x45da5e
mov dword [ebp - 0x1c4], 0
jmp 0x45da8e
mov eax, dword [ebp - 0x34]
shl eax, 1
call fcn.00445230
mov dword [ebp - 0x1c8], esp
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x34]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.00405a20
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 0
mov edx, dword [ebp - 0x1c0]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45dacd
push 0x47a880
lea ecx, [ebp - 0x38]
call fcn.00402160
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x1ac], esp
lea edx, [ebp - 0x38]
push edx
call fcn.00401880
push ecx
mov ecx, esp
mov dword [ebp - 0x1b0], esp
lea eax, [ebp - 0x74]
push eax
call fcn.00401880
call fcn.0045b590
add esp, 8
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 3
jle 0x45db87
lea ecx, [ebp - 0x38]
call fcn.00404e70
lea ecx, [ebp - 0x48]
call fcn.00404e70
lea ecx, [ebp - 0x74]
call fcn.00404e70
lea ecx, [ebp - 0x40]
call fcn.00404e70
lea ecx, [ebp - 0x2c]
call fcn.00404e70
lea ecx, [ebp - 0x4c]
call fcn.00404e70
lea ecx, [ebp - 0x60]
call fcn.00404e70
lea ecx, [ebp - 0x44]
call fcn.00404e70
lea ecx, [ebp - 0x64]
call fcn.00404e70
lea ecx, [ebp - 0x3c]
call fcn.00404e70
lea ecx, [ebp - 0x30]
call fcn.00404e70
lea ecx, [ebp - 0x50]
call fcn.00404e70
lea ecx, [ebp - 0x58]
call fcn.00404e70
lea ecx, [ebp - 0x6c]
call fcn.00404e70
jmp 0x45dc95
push 0x47a884
lea edx, [ebp - 0x38]
push edx
call fcn.00402e30
add esp, 8
movzx eax, al
test eax, eax
je 0x45dba8
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 3
jl 0x45dc20
lea ecx, [ebp - 0x38]
call fcn.00404e70
lea ecx, [ebp - 0x48]
call fcn.00404e70
lea ecx, [ebp - 0x74]
call fcn.00404e70
lea ecx, [ebp - 0x40]
call fcn.00404e70
lea ecx, [ebp - 0x2c]
call fcn.00404e70
lea ecx, [ebp - 0x4c]
call fcn.00404e70
lea ecx, [ebp - 0x60]
call fcn.00404e70
lea ecx, [ebp - 0x44]
call fcn.00404e70
lea ecx, [ebp - 0x64]
call fcn.00404e70
lea ecx, [ebp - 0x3c]
call fcn.00404e70
lea ecx, [ebp - 0x30]
call fcn.00404e70
lea ecx, [ebp - 0x50]
call fcn.00404e70
lea ecx, [ebp - 0x58]
call fcn.00404e70
lea ecx, [ebp - 0x6c]
call fcn.00404e70
jmp 0x45dc95
lea ecx, [ebp - 0x38]
call fcn.00404e70
lea ecx, [ebp - 0x48]
call fcn.00404e70
lea ecx, [ebp - 0x74]
call fcn.00404e70
lea ecx, [ebp - 0x40]
call fcn.00404e70
lea ecx, [ebp - 0x2c]
call fcn.00404e70
lea ecx, [ebp - 0x4c]
call fcn.00404e70
lea ecx, [ebp - 0x60]
call fcn.00404e70
lea ecx, [ebp - 0x44]
call fcn.00404e70
lea ecx, [ebp - 0x64]
call fcn.00404e70
lea ecx, [ebp - 0x3c]
call fcn.00404e70
lea ecx, [ebp - 0x30]
call fcn.00404e70
lea ecx, [ebp - 0x50]
call fcn.00404e70
lea ecx, [ebp - 0x58]
call fcn.00404e70
lea ecx, [ebp - 0x6c]
call fcn.00404e70
jmp 0x45d595
mov edx, dword [ebp - 0x18]
push edx
call fcn.0043d3c7
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00404e70
lea ecx, [ebp - 0x14]
call fcn.0042b95d
lea ecx, [ebp - 0x1c]
call fcn.00404e70
lea ecx, [ebp + 8]
call fcn.00404e70
lea esp, [ebp - 0x1c8]
mov ecx, dword [ebp - 0x84]
xor ecx, ebp
call fcn.0043aa6f
mov esp, ebp
pop ebp
ret