Function at 0x1004a460
Capabilities:
Check http status code
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100511a8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1005b030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x34], al
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov dword [ebp - 0x64], 0x20
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x4c], al
push eax
push 0x10055934
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
call fcn.10001ed0
cmp dword [esi + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x1004a4f4
mov esi, dword [esi + 4]
jmp 0x1004a4f7
add esi, 4
mov ecx, dword [edi + 4]
push 0
push 0
push 3
push 0
push 0
push 0x50
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
jne 0x1004a530
cmp dword [ebp - 0x38], 0x10
jb 0x1004a529
mov edx, dword [ebp - 0x4c]
push edx
call fcn.1001a82a
add esp, 4
xor eax, eax
jmp 0x1004a635
cmp dword [ebx + 0x18], 0x10
jb 0x1004a53b
mov ebx, dword [ebx + 4]
jmp 0x1004a53e
add ebx, 4
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x1004a578
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x38], 0x10
jb 0x1004a529
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1001a82a
add esp, 4
xor eax, eax
jmp 0x1004a635
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1004a614
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x34]
push edx
push 5
push esi
call edi
push 0
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0x20000013
push esi
mov dword [ebp - 0x68], 4
call edi
cmp ebx, 1
jne 0x1004a611
cmp eax, ebx
jne 0x1004a611
cmp dword [ebp - 0x5c], 0xc8
jne 0x1004a611
lea edx, [ebp - 0x34]
push edx
call fcn.1001ae03
mov edi, eax
add esp, 4
cmp edi, dword [ebp + 0x14]
jae 0x1004a611
lea ebx, [edi + 1]
push ebx
call fcn.1001a524
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
je 0x1004a611
lea ecx, [ebp - 0x6c]
push ecx
push edi
push eax
push esi
mov byte [edi + eax], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004a611
mov edx, dword [ebp - 0x60]
mov dword [edx], ebx
mov edi, dword [ebp - 0x58]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp - 0x38], 0x10
jb 0x1004a632
mov eax, dword [ebp - 0x4c]
push eax
call fcn.1001a82a
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001a52f
mov esp, ebp
pop ebp
ret 0x10