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

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x638231
mov eax, dword [ebp - 4]
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10278], ecx
mov dword [ebp - 0x10274], ecx
mov dword [ebp - 0x10270], ecx
mov dword [ebp - 0x1026c], ecx
mov dword [ebp - 0x10264], ecx
mov dword [ebp - 0x10268], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x10]
xor eax, eax
push ebp
push 0x6385c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10268]
mov eax, dword [0x6732d4]
mov eax, dword [eax]
call fcn.00610ffc
mov eax, dword [ebp - 0x10268]
lea edx, [ebp - 0x10264]
call fcn.004292a4
mov eax, dword [ebp - 0x10264]
call fcn.0040bfd8
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6385a6
xor eax, eax
push ebp
push 0x638306
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x84000100
push 0
push 0
mov eax, esi
call fcn.0040bfd8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlW
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x638323
cmp dword [ebp - 0xc], 0
jne 0x638337
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x6385a6
lea edx, [ebp - 0x1026c]
mov eax, edi
call fcn.00637bb4
mov edx, dword [ebp - 0x1026c]
lea eax, [ebp - 0x10260]
call fcn.00407ea8
call fcn.00407170
xor eax, eax
push ebp
push 0x638387
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 1
lea eax, [ebp - 0x10260]
call fcn.00408dfc
call fcn.00407170
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6383ad
cmp byte [0x67ae1a], 0
jne 0x638451
mov eax, 0x6385e4
call fcn.00637aac
test al, al
jne 0x638451
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x504]
call fcn.00551a00
push 0x638610
lea eax, [ebp - 0x10270]
push eax
mov ecx, 0x638640
mov edx, 0x638654
mov eax, dword [0x67ae10]
mov esi, dword [eax]
call dword [esi + 8]
mov edx, dword [ebp - 0x10270]
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x504]
call fcn.0055144c
cmp dword [0x67ae08], 9
jne 0x638451
push 0x638610
lea eax, [ebp - 0x10274]
push eax
mov ecx, 0x638640
mov edx, 0x638654
mov eax, dword [0x67ae10]
mov esi, dword [eax]
call dword [esi + 8]
mov edx, dword [ebp - 0x10274]
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x460]
call fcn.0055144c
mov dx, 0xfff5
mov eax, dword [0x67add4]
call fcn.00551664
mov eax, dword [0x6732d4]
mov eax, dword [eax]
call fcn.00610270
xor edx, edx
push ebp
push 0x6384d0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x504]
cmp byte [eax + 0x69], 0
je 0x638491
xor eax, eax
call fcn.00637e10
push ebx
push 0x10000
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x10010]
mov ecx, dword [ebx]
lea eax, [ebp - 0x10260]
call fcn.00408098
call fcn.00407170
cmp dword [ebx], 0
jne 0x638479
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x638528
lea eax, [ebp - 0x10260]
call fcn.004080b8
call fcn.00407170
mov byte [ebp - 1], 1
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x504]
cmp byte [eax + 0x69], 0
je 0x638552
call fcn.005519f8
xor edx, edx
mov eax, dword [0x67add4]
call fcn.00551664
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
push 0x638674
lea eax, [ebp - 0x10278]
push eax
mov ecx, 0x638698
mov edx, 0x638654
mov eax, dword [0x67ae10]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x10278]
mov eax, dword [0x67add4]
mov eax, dword [eax + 0x504]
call fcn.0055144c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6385cd
lea eax, [ebp - 0x10278]
mov edx, 6
call fcn.0040b4c0
pop eax
jmp eax