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

Disassembly:
push pe_nt_image_headers32
mov eax, 0x5af459
call fcn.0057798c
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.00579030
pop ecx
push 0x20
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0041448d
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 0x45fc1c
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x20]
call fcn.0042d50c
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.0040f612
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040388d
lea ecx, [ebp - 0xf8]
call fcn.00413685
jmp 0x45fea1
push ecx
push ecx
push ecx
push 0x5f8660
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0xfc], edi
test edi, edi
je 0x45fe58
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 0x45fe30
mov dword [ebp - 0x2c], 1
mov edi, eax
test ebx, ebx
je 0x45fc77
cmp byte [ebx], 0
je 0x45fd65
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.004048e2
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 0x45fdee
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x45fce1
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.00415691
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xec], 0
jne 0x45fd9e
mov ecx, dword [ebp + 0x5c]
test ecx, ecx
sete dl
test ecx, ecx
je 0x45fd3e
test ebx, ebx
je 0x45fd27
cmp byte [ebx], 0
je 0x45fd3e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
test dl, dl
jne 0x45fec1
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 0x45fd56
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404a83
pop ecx
pop ecx
cmp dword [ebp - 0x2c], 0
jne 0x45fc6a
jmp 0x45fe21
lea ecx, [ebp - 0xf4]
call fcn.00414315
test eax, eax
jne 0x45fd91
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.0040d364
lea ecx, [ebp + 0x20]
call fcn.0042343f
jmp 0x45fe21
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp + 0x20]
call fcn.0042d50c
push 0x18
push str.Failed_writing_to_file:
push 0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 7
call fcn.004109ef
push eax
lea ecx, [ebp - 0x134]
call fcn.004033e5
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d664
lea ecx, [ebp - 0x134]
call fcn.0040388d
jmp 0x45fe02
lea ecx, [ebp - 0x118]
call fcn.0045df81
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d664
lea ecx, [ebp - 0x118]
call fcn.0040388d
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x45fe21
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404a83
pop ecx
pop ecx
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0xfc]
jmp 0x45fe4f
lea ecx, [ebp - 0x118]
call fcn.0045df81
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d664
lea ecx, [ebp - 0x118]
call fcn.0040388d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x45fe77
lea ecx, [ebp - 0x118]
call fcn.0045df81
push eax
lea ecx, [ebp - 0x48]
call fcn.0040d664
lea ecx, [ebp - 0x118]
call fcn.0040388d
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.004033e5
lea ecx, [ebp - 0xf8]
call fcn.00413685
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x45fea1
inc eax
push eax
push dword [ebp - 0x48]
call fcn.00404a83
pop ecx
pop ecx
lea ecx, [ebp + 8]
call fcn.0040388d
lea ecx, [ebp + 0x20]
call fcn.0040e260
lea ecx, [ebp + 0x38]
call fcn.004035ff
mov eax, esi
call fcn.0057793b
ret
call fcn.00562c8f
int3