Function at 0x41cf80
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2cdc
call fcn.00488190
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 0x8b0]
mov edx, 0x4a1b98
mov ecx, esi
push edi
mov edi, 0x80004005
sub ecx, edx
movzx eax, word [edx]
mov word [ecx + edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x41cfb0
xor eax, eax
push 0x1044
push eax
mov word [ebp - 0x145c], ax
lea eax, [ebp - 0x145a]
push eax
call fcn.004866f0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004866f0
push 0x1046
lea eax, [ebp - 0x24a4]
push 0
push eax
call fcn.004866f0
push 0x409
push 0x823
lea eax, [ebp - 0x24a4]
push eax
push 0x6a
push dword [ebx + 4]
call fcn.00412610
push 0x409
push 0x823
lea eax, [ebp - 0x145c]
push eax
push 0x6c
push dword [ebx + 4]
call fcn.00412610
add esp, 0x4c
lea eax, [ebp - 0x24a4]
push eax
push str.szDownloadParm____s_
call fcn.00413860
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x24a4]
push eax
push 0x4a7828
call fcn.004134a0
cmp byte [ebx + 0xd531], 0
mov ecx, 0x4a95b0
mov eax, 0x4a95a8
cmove eax, ecx
push eax
lea eax, [ebx + 0x43aa]
push eax
lea eax, [ebx + 0x41a2]
push eax
lea eax, [ebx + 0x3f9a]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 0x3d92]
push eax
lea eax, [ebx + 0x3b8a]
push eax
lea eax, [ebp - 0x145c]
push eax
push str._s_PRODUCTNAME_sPRODUCTVERSION_sVERSIONTYPE_sSR_sVID_sLANGUAGE_splatform_s
push 0x822
push eax
call fcn.004146d0
add esp, 0x40
lea eax, [ebp - 0x145c]
push eax
push str._RetrieveDownloadUrl__szDownloadQueryUrl____s_
call fcn.00413860
mov ecx, dword [ebx + 0xd568]
add esp, 8
call fcn.00411290
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebx + 0xd568]
mov dword [ecx + 4], eax
cmp byte [ebx + 0xd534], 0
jne 0x41d3f9
mov eax, dword [ebx + 0xd568]
cmp byte [eax + 0xd], 0
jne 0x41d3f9
cmp dword [eax + 4], 0
jne 0x41d1af
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41d135
mov edi, eax
jmp 0x41d13e
movzx edi, ax
or edi, 0x80070000
push edi
push eax
push 0x4a9124
push str._s_failed__error___d__0x_x_
call fcn.00413860
add esp, 0x10
call esi
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004866f0
push esi
push str._ERROR_RetrieveDownloadUrl____InternetOpenW_failed__ErrorCode___.8X
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00401690
lea eax, [ebp - 0x20c]
push eax
call fcn.004010d0
add esp, 0x20
mov ecx, dword [ebx + 0x698]
test ecx, ecx
je 0x41d3f9
call fcn.004037e0
jmp 0x41d3f9
push 4
lea ecx, [ebp - 0x2cd8]
push ecx
push 0x4d
mov dword [ebp - 0x2cd8], 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push SysReAllocString
push 0
push 0
lea eax, [ebp - 0x145c]
push eax
mov eax, dword [ebx + 0xd568]
push dword [eax + 4]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ecx, dword [ebx + 0xd568]
mov dword [ecx + 8], eax
cmp byte [ebx + 0xd534], 0
jne 0x41d3f9
mov eax, dword [ebx + 0xd568]
cmp byte [eax + 0xd], 0
jne 0x41d3f9
cmp dword [eax + 8], 0
jne 0x41d32f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41d22e
mov edi, eax
jmp 0x41d237
movzx edi, ax
or edi, 0x80070000
push edi
push eax
push 0x4a9754
push str._s_failed__error___d__0x_x_
call fcn.00413860
add esp, 0x10
call esi
mov dword [ebp - 0x2cd0], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x2cdc], 0
call fcn.004866f0
push 0x1046
lea eax, [ebp - 0x24a4]
push 0
push eax
mov dword [ebp - 0x2cd4], 0x103
call fcn.004866f0
add esp, 0x18
lea eax, [ebp - 0x2cd4]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x2cdc]
push eax
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoW]
test eax, eax
je 0x41d2f8
lea eax, [ebp - 0x145c]
push eax
push dword [ebp - 0x2cd0]
lea eax, [ebp - 0x20c]
push eax
push str._ERROR_RetrieveDownloadUrl____InternetOpenUrlW_failed__RootCause___s__ErrorCode___.8X___szDownloadQueryUrl___s
lea eax, [ebp - 0x24a4]
push 0x822
push eax
call fcn.004146d0
add esp, 0x18
lea eax, [ebp - 0x24a4]
push eax
call fcn.004010d0
add esp, 4
jmp 0x41d197
call esi
lea ecx, [ebp - 0x145c]
push ecx
push eax
push str._ERROR_RetrieveDownloadUrl____InternetOpenUrlW_failed__ErrorCode___.8X__szDownloadQueryUrl___s
lea eax, [ebp - 0x24a4]
push 0x822
push eax
call fcn.004146d0
add esp, 0x14
lea eax, [ebp - 0x24a4]
push eax
call fcn.004010d0
add esp, 4
jmp 0x41d197
push str._RetrieveDownloadUrl__InternetOpenUrlW_completed
call fcn.00413860
push 0x823
push esi
mov dword [ebp - 0x2ccc], 0
call fcn.004127b0
add esp, 0xc
test al, al
jne 0x41d3e9
lea eax, [ebp - 0x2ccc]
push eax
push 0x822
lea eax, [ebp - 0x2cc8]
push eax
mov eax, dword [ebx + 0xd568]
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41d3eb
mov eax, dword [ebp - 0x2ccc]
test eax, eax
je 0x41d3eb
cmp eax, 0x823
jae 0x41d4ad
mov byte [ebp + eax - 0x2cc8], 0
push 0x4a998c
lea eax, [ebp - 0x2cc8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
lea ecx, [ebp - 0x2cc8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d3b7
push 0x823
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x2cc8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push esi
push 0
call sub.urlmon.dll_IsValidURL
test eax, eax
jne 0x41d434
xor edi, edi
push esi
push str._RetrieveDownloadUrl__DownloadURL_:__s
call fcn.00413860
add esp, 8
mov ecx, dword [ebx + 0xd568]
mov dword [ebx + 0xd538], edi
mov byte [ecx + 0xc], 1
mov ecx, dword [ebx + 0xd568]
call fcn.00411290
push str.RetrieveDownloadUrl_end
call fcn.00413860
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00487c50
mov esp, ebp
pop ebp
ret
push 0x1046
lea eax, [ebp - 0x24a4]
push 0
push eax
call fcn.004866f0
push esi
push 0x4a9990
lea eax, [ebp - 0x24a4]
push 0x822
push eax
call fcn.004146d0
lea eax, [ebp - 0x24a4]
push eax
call fcn.004010d0
mov ecx, dword [ebx + 0x698]
add esp, 0x20
test ecx, ecx
je 0x41d47c
call fcn.004037e0
push 6
push str.error:
push esi
call fcn.0048b67f
add esp, 0xc
test eax, eax
je 0x41d4a3
push str.INVALID_URL
push 0x822
push esi
call fcn.004146d0
add esp, 0xc
mov edi, 0x80700003
jmp 0x41d3eb
call fcn.0048697a
int3