Function at 0x539694
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x140e
push 0
push 0
dec ecx
jne 0x538e11
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xa018], ecx
mov dword [ebp - 0xa014], edx
mov dword [ebp - 0xa010], eax
mov eax, dword [ebp - 0xa014]
call fcn.00405894
xor eax, eax
push ebp
push 0x5398ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa019], 0
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00405404
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xa010]
add eax, 0x34
call fcn.00405404
mov eax, dword [ebp - 0xa010]
add eax, 8
push eax
mov eax, dword [ebp - 0xa010]
add eax, 0xc
push eax
mov eax, dword [ebp - 0xa010]
lea ecx, [eax + 4]
lea edx, [ebp - 0xa041]
mov eax, dword [ebp - 0xa014]
call fcn.00538548
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 8]
mov eax, 0x5398d8
call fcn.004059f0
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jne 0x538edb
lea eax, [ebp - 0xa034]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 8]
call fcn.0040549c
jmp 0x538f1d
lea eax, [ebp - 0xa034]
push eax
mov ecx, dword [ebp - 0xa02c]
dec ecx
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
mov edx, 1
call fcn.0040590c
lea eax, [ebp - 0xa038]
push eax
mov edx, dword [ebp - 0xa02c]
inc edx
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
mov ecx, 0x7fffffff
call fcn.0040590c
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x1c], 0
je 0x538f4a
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x1c]
call fcn.004058a4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
jmp 0x538f5c
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x539870
push 0x5389f0
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetStatusCallback
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x2c], 0
je 0x538ff3
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 6
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 8
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 5
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
mov eax, dword [ebp - 0xa010]
add eax, 0x2c
push eax
push 7
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 3
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x14]
call fcn.004058a4
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x10]
call fcn.004058a4
push eax
mov eax, dword [ebp - 0xa010]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 4]
call fcn.004058a4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53904f
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
mov byte [ebp - 0xa019], 1
cmp byte [ebp + 0xc], 0
je 0x539069
mov eax, 0x5398dc
mov dword [ebp - 0xa020], eax
jmp 0x539074
mov eax, 0x5398e0
mov dword [ebp - 0xa020], eax
xor eax, eax
mov dword [ebp - 0xa024], eax
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0xe], 0
jne 0x539092
mov dword [ebp - 0xa024], 0x80000000
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x30], 0
jne 0x5390a8
or dword [ebp - 0xa024], 0x80000
cmp byte [ebp - 0xa041], 0
je 0x5390d1
mov eax, dword [ebp - 0xa024]
or eax, 0x80000
or eax, 0x800000
or eax, 0x1000
or eax, 0x2000
mov dword [ebp - 0xa024], eax
push 2
lea eax, [ebp - 0xa028]
mov ecx, 1
mov edx, dword [0x538d30]
call fcn.00406a9c
add esp, 4
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x18]
call fcn.004058a4
mov edx, dword [ebp - 0xa028]
mov dword [edx], eax
mov eax, dword [ebp - 0xa028]
xor edx, edx
mov dword [eax + 4], edx
cmp byte [ebp + 0xc], 0
je 0x539198
mov eax, dword [ebp - 0xa010]
push eax
mov eax, dword [ebp - 0xa024]
push eax
mov eax, dword [ebp - 0xa028]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x20]
call fcn.004058a4
push eax
push 0x5398e8
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 8]
call fcn.004058a4
push eax
mov eax, dword [ebp - 0xa020]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x539174
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.00538a14
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
jmp 0x53925b
mov eax, dword [ebp - 0xa010]
push eax
mov eax, dword [ebp - 0xa024]
push eax
mov eax, dword [ebp - 0xa028]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x20]
call fcn.004058a4
push eax
push 0x5398e8
mov eax, dword [ebp - 0xa034]
call fcn.004058a4
push eax
mov eax, dword [ebp - 0xa020]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5391f2
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xa010]
call fcn.00538a14
push 0xa0000000
push 0x2f
push 0x5398f4
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpAddRequestHeadersA
mov eax, dword [ebp - 0xa038]
mov dword [ebp - 0xa04c], eax
cmp dword [ebp - 0xa04c], 0
je 0x53923b
mov eax, dword [ebp - 0xa04c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xa04c], eax
mov eax, dword [ebp - 0xa04c]
push eax
mov eax, dword [ebp - 0xa038]
call fcn.004058a4
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpSendRequestA
mov byte [ebp - 0xa019], 2
push ebp
mov eax, 0x13
call fcn.00538d94
pop ecx
test al, al
jne 0x53927e
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
lea edx, [ebp - 0xa050]
lea eax, [ebp - 0xa00c]
call fcn.0040b8e8
mov eax, dword [ebp - 0xa050]
xor edx, edx
call fcn.0040a8dc
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x4c], 0xc8
je 0x5392cf
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x4c], 0xce
je 0x5392cf
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
mov byte [ebp - 0xa019], 3
cmp byte [ebp + 8], 0
je 0x5392e8
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
push ebp
mov eax, 0xb
call fcn.00538d94
pop ecx
test al, al
je 0x53930c
mov eax, dword [ebp - 0xa010]
add eax, 0x40
lea edx, [ebp - 0xa00c]
call fcn.0040560c
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 0xa010]
xor edx, edx
mov dword [eax + 0x48], edx
push ebp
mov eax, 0x35
call fcn.00538d94
pop ecx
test al, al
je 0x539472
lea eax, [ebp - 0xa054]
lea edx, [ebp - 0xa00c]
call fcn.0040560c
mov eax, dword [ebp - 0xa054]
lea edx, [ebp - 0xa030]
call fcn.0040a128
mov edx, dword [ebp - 0xa030]
mov eax, 0x53992c
call fcn.004059f0
dec eax
jne 0x539439
lea eax, [ebp - 0xa030]
push eax
mov ecx, 0x7fffffff
mov edx, 7
mov eax, dword [ebp - 0xa030]
call fcn.0040590c
mov edx, dword [ebp - 0xa030]
mov eax, 0x53993c
call fcn.004059f0
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jle 0x5393e6
lea eax, [ebp - 0xa058]
push eax
mov ecx, dword [ebp - 0xa02c]
dec ecx
xor edx, edx
mov eax, dword [ebp - 0xa030]
call fcn.0040590c
mov eax, dword [ebp - 0xa058]
xor edx, edx
call fcn.0040a8dc
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x48], eax
mov edx, dword [ebp - 0xa030]
mov eax, 0x539948
call fcn.004059f0
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jle 0x539439
lea eax, [ebp - 0xa05c]
push eax
mov edx, dword [ebp - 0xa02c]
inc edx
mov ecx, 0x7fffffff
mov eax, dword [ebp - 0xa030]
call fcn.0040590c
mov eax, dword [ebp - 0xa05c]
xor edx, edx
call fcn.0040a8dc
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x3c], eax
push ebp
mov eax, 5
call fcn.00538d94
pop ecx
test al, al
je 0x5394bb
lea edx, [ebp - 0xa060]
lea eax, [ebp - 0xa00c]
call fcn.0040b8e8
mov eax, dword [ebp - 0xa060]
xor edx, edx
call fcn.0040a8dc
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x44], eax
jmp 0x5394bb
push ebp
mov eax, 5
call fcn.00538d94
pop ecx
test al, al
je 0x5394bb
lea edx, [ebp - 0xa064]
lea eax, [ebp - 0xa00c]
call fcn.0040b8e8
mov eax, dword [ebp - 0xa064]
xor edx, edx
call fcn.0040a8dc
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x3c]
mov edx, dword [ebp - 0xa010]
mov dword [edx + 0x44], eax
push ebp
mov eax, 1
call fcn.00538d94
pop ecx
test al, al
je 0x539593
lea edx, [ebp - 0xa06c]
lea eax, [ebp - 0xa00c]
call fcn.0040b8e8
mov eax, dword [ebp - 0xa06c]
lea edx, [ebp - 0xa068]
call fcn.0040a128
mov edx, dword [ebp - 0xa068]
mov eax, dword [ebp - 0xa010]
add eax, 0x38
call fcn.00405458
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0x539954
call fcn.004059f0
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
je 0x539593
mov eax, dword [ebp - 0xa010]
add eax, 0x38
push eax
mov edx, dword [ebp - 0xa02c]
add edx, 8
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x38]
mov ecx, 0x7fffffff
call fcn.0040590c
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x38]
mov eax, 0x539968
call fcn.004059f0
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jle 0x539593
mov eax, dword [ebp - 0xa010]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0xa02c]
dec ecx
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x38]
mov edx, 1
call fcn.0040590c
mov eax, dword [ebp - 0xa010]
cmp byte [eax + 0x58], 0
je 0x539777
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x48]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x5395c3
cmp eax, dword [esp]
pop edx
pop eax
je 0x5395d3
push ebp
call fcn.00538d50
pop ecx
jmp 0x539870
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jbe 0x539694
mov dl, 1
mov eax, dword [0x41a8d0]
call fcn.00404474
mov dword [ebp - 0xa048], eax
xor eax, eax
push ebp
push 0x53968d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.0040ae9c
test al, al
je 0x539629
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa048]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0xa048]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x539663
lea ecx, [ebp - 0xa070]
xor edx, edx
mov eax, dword [ebp - 0xa048]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa070]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 0x40]
call fcn.0040a348
test al, al
jne 0x539674
push ebp
call fcn.00538d50
pop ecx
call fcn.00404e04
jmp 0x539870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539694
mov eax, dword [ebp - 0xa048]
call fcn.004044a4
ret
mov eax, dword [ebp - 0xa010]
cmp dword [eax + 0x48], 0
jne 0x539777
mov dl, 1
mov eax, dword [0x41a8d0]
call fcn.00404474
mov dword [ebp - 0xa048], eax
xor eax, eax
push ebp
push 0x539770
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x64]
call fcn.0040ae9c
test al, al
je 0x5396ea
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa048]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0xa048]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x539724
lea ecx, [ebp - 0xa074]
xor edx, edx
mov eax, dword [ebp - 0xa048]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0xa074]
mov edx, dword [ebp - 0xa010]
mov edx, dword [edx + 0x40]
call fcn.0040a348
test al, al
jne 0x539757
mov eax, dword [ebp - 0xa048]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0xa048]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xa010]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0xa048]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539777
mov eax, dword [ebp - 0xa048]
call fcn.004044a4
ret
mov eax, dword [ebp - 0xa010]
cmp word [eax + 0x6a], 0
je 0x5397b1
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x3c]
push eax
mov ebx, dword [ebp - 0xa010]
mov ecx, dword [ebp - 0xa014]
mov edx, dword [ebp - 0xa010]
mov eax, dword [ebx + 0x6c]
call dword [ebx + 0x68]
mov byte [ebp - 0xa039], 0
mov dword [ebp - 0xa040], 0xa000
lea eax, [ebp - 0xa040]
push eax
push 0xa000
lea eax, [ebp - 0xa00c]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x539850
cmp dword [ebp - 0xa040], 0
je 0x539850
lea edx, [ebp - 0xa00c]
mov ecx, dword [ebp - 0xa040]
mov eax, dword [ebp - 0xa018]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0xa010]
cmp word [eax + 0x72], 0
je 0x539843
mov eax, dword [ebp - 0xa018]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0xa010]
mov eax, dword [eax + 0x3c]
push eax
lea eax, [ebp - 0xa039]
push eax
mov ebx, dword [ebp - 0xa010]
mov ecx, dword [ebp - 0xa014]
mov edx, dword [ebp - 0xa010]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
cmp byte [ebp - 0xa039], 0
je 0x5397b8
cmp byte [ebp - 0xa039], 0
je 0x539862
mov byte [ebp - 0xa019], 4
jmp 0x539869
mov byte [ebp - 0xa019], 5
push ebp
call fcn.00538d50
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5398c1
lea eax, [ebp - 0xa074]
mov edx, 0xa
call fcn.00405428
lea eax, [ebp - 0xa038]
mov edx, 3
call fcn.00405428
lea eax, [ebp - 0xa028]
mov edx, dword [0x538d30]
call fcn.00406b9c
lea eax, [ebp - 0xa014]
call fcn.00405404
ret