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

Disassembly:
push 0x128
mov eax, 0x5baf6c
call fcn.00581c9c
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xfc], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], cl
push 0xb0
push ecx
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 3
push eax
call fcn.00583340
pop ecx
push 0x20
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00411530
mov byte [ebp - 4], 4
xor ecx, ecx
mov eax, dword [ebp - 0xf8]
push ecx
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xec], ecx
je 0x46e26e
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x20]
call fcn.0043a31c
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
mov edx, str.Failed_to_open_file_for_writing:
mov ecx, esi
call fcn.0041140a
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004039ad
lea ecx, [ebp - 0xf8]
call fcn.0040de51
jmp 0x46e4f9
push ecx
push ecx
push ecx
push 0x6121c0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0xfc], edi
test edi, edi
je 0x46e4ae
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push eax
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x100], eax
test eax, eax
je 0x46e484
mov dword [ebp - 0x2c], 1
mov edi, eax
test ebx, ebx
je 0x46e2c9
cmp byte [ebx], 0
je 0x46e3b7
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
push 0xffff
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00404a02
mov edi, dword [ebp - 0x100]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x46e440
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x46e333
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xf8]
push edx
push eax
call fcn.00413843
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xec], 0
jne 0x46e3f0
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
sete dl
test ecx, ecx
je 0x46e390
test ebx, ebx
je 0x46e379
cmp byte [ebx], 0
je 0x46e390
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
test dl, dl
jne 0x46e519
mov eax, dword [ecx]
lea edx, [ebp - 0x30]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x46e3a8
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404ba3
pop ecx
pop ecx
cmp dword [ebp - 0x2c], 0
jne 0x46e2bc
jmp 0x46e475
lea ecx, [ebp - 0xf4]
call fcn.00410b65
test eax, eax
jne 0x46e3e3
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
push 0
add ecx, dword [eax + 4]
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
call fcn.0041044e
lea ecx, [ebp + 0x20]
call fcn.0043038d
jmp 0x46e475
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp + 0x20]
call fcn.0043a31c
push 0x18
push str.Failed_writing_to_file:
push 0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.00412e44
push eax
lea ecx, [ebp - 0x134]
call fcn.00403505
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041f9fc
lea ecx, [ebp - 0x134]
call fcn.004039ad
jmp 0x46e456
mov dl, 1
lea ecx, [ebp - 0x118]
call fcn.0046c51b
push eax
lea ecx, [ebp - 0x48]
call fcn.0041f9fc
lea ecx, [ebp - 0x118]
call fcn.004039ad
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x46e475
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404ba3
pop ecx
pop ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0xfc]
jmp 0x46e4a5
mov dl, 1
lea ecx, [ebp - 0x118]
call fcn.0046c51b
push eax
lea ecx, [ebp - 0x48]
call fcn.0041f9fc
lea ecx, [ebp - 0x118]
call fcn.004039ad
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x46e4cf
mov dl, 1
lea ecx, [ebp - 0x118]
call fcn.0046c51b
push eax
lea ecx, [ebp - 0x48]
call fcn.0041f9fc
lea ecx, [ebp - 0x118]
call fcn.004039ad
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00403505
lea ecx, [ebp - 0xf8]
call fcn.0040de51
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x46e4f9
inc eax
push eax
push dword [ebp - 0x48]
call fcn.00404ba3
pop ecx
pop ecx
lea ecx, [ebp + 8]
call fcn.004039ad
lea ecx, [ebp + 0x20]
call fcn.00410c77
lea ecx, [ebp + 0x38]
call fcn.0040371f
mov eax, esi
call fcn.00581c4b
ret
call fcn.0056cf9f
int3