Function at 0x4ba770
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2dc0
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x61c850]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.0043b2f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0043b2f0
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x58], 0x5ba954
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x74]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xe8], esp
lea eax, [ebp + 8]
push eax
call fcn.00405d60
mov dword [ebp - 0xfc], eax
call fcn.004b8ab0
add esp, 0x28
mov byte [ebp - 0xfd], al
movzx ecx, byte [ebp - 0xfd]
test ecx, ecx
jne 0x4ba852
mov dword [ebp - 0xec], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00405ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ea0
mov eax, dword [ebp - 0xec]
jmp 0x4bab79
push 0
push 0
push 0
push 0
push str.IKU_3.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0xec], 0
jne 0x4ba885
jmp 0x4bab2e
mov ecx, dword [ebp - 0xf8]
cmp dword [ecx + 0xfc], 0
je 0x4ba8b8
push 4
mov edx, dword [ebp - 0xf8]
add edx, 0xfc
push edx
push 5
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0xec]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov edx, dword [ebp - 0xf8]
cmp dword [edx + 0x100], 0
je 0x4ba8ea
push 4
mov eax, dword [ebp - 0xf8]
add eax, 0x100
push eax
push 6
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0xec]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x104], 0
je 0x4ba91d
push 4
mov ecx, dword [ebp - 0xf8]
add ecx, 0x104
push ecx
push 2
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 0xec]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 1
push 0
push 3
push 0
push 0
movzx ecx, word [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00405ee0
push eax
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 0xec]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0xf0], eax
mov edx, dword [ebp - 0xf8]
cmp dword [edx + 0xf0], 0
jne 0x4ba968
jmp 0x4bab2e
push 1
push 0
lea eax, [ebp - 0x58]
push eax
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00405ee0
push eax
push 0x5ba96c
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0xf0]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0xf4], eax
mov edx, dword [ebp - 0xf8]
cmp dword [edx + 0xf4], 0
jne 0x4ba9b5
jmp 0x4bab2e
mov ecx, 0x19
mov esi, 0x5ba978
lea edi, [ebp - 0xdc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.00496a0e
add esp, 4
push eax
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0xf4]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4baa07
jmp 0x4bab2e
mov ecx, dword [ebp - 0xf8]
call fcn.004b9bf0
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jl 0x4baa2d
cmp dword [ebp - 0xe4], 0x989680
jle 0x4baa69
mov dword [ebp - 0xf0], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00405ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ea0
mov eax, dword [ebp - 0xf0]
jmp 0x4bab79
push 1
mov eax, dword [ebp - 0xe4]
add eax, 0x40
push eax
push 0
mov ecx, dword [ebp + 0x30]
call fcn.00485f20
mov dword [ebp - 0xe0], 0
lea ecx, [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
mov ecx, dword [ebp + 0x30]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0xf4]
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4baae6
mov ecx, dword [ebp + 0x30]
call fcn.00402b50
cmp dword [ebp - 0xe0], eax
jae 0x4baae6
mov edx, dword [ebp - 0xe0]
push edx
mov ecx, dword [ebp + 0x30]
call fcn.00402b70
mov ecx, dword [ebp + 0x30]
call fcn.004023d0
mov byte [eax], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0xf8]
call fcn.004ba650
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x108]
push edx
mov ecx, dword [ebp + 0x2c]
call fcn.00405e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00405ea0
xor eax, eax
jne 0x4ba7d7
mov ecx, dword [ebp - 0xf8]
call fcn.004ba260
xor ecx, ecx
cmp dword [ebp - 0x30], 0
setne cl
lea ecx, [ecx + ecx - 1]
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00405ea0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00405ea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00405ea0
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493f9c
mov esp, ebp
pop ebp
ret 0x2c