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

Disassembly:
push 0xffffffffffffffff
push 0x43f6ad
mov eax, dword fs:[0]
push eax
mov eax, 0x10040
call fcn.0042a970
mov eax, dword [0x453544]
xor eax, esp
mov dword [esp + 0x10038], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453544]
xor eax, esp
push eax
lea eax, [esp + 0x10054]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x10064]
push 0
push str.UseProxy
push 0x4474e0
mov ecx, 0x457880
call fcn.0041361e
test eax, eax
mov dword [esp + 0x20], eax
je 0x405dde
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405cd2
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0
push str.ProxyPort
push 0x4474e0
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x457880
mov dword [esp + 0x1006c], 0
call fcn.004137a7
mov esi, eax
push 0
push str.ProxyAddr
push 0x4474e0
lea edx, [esp + 0x24]
mov bl, 1
push edx
mov ecx, 0x457880
mov byte [esp + 0x1006c], bl
call fcn.004137a7
mov byte [esp + 0x1005c], 2
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s:_s
push eax
call fcn.00401b70
mov byte [esp + 0x1006c], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1005c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
push 3
push str.KT_Client
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x1005c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405df3
push 0
push 0
push 0
push 0
push str.KT_Client
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x405dfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x50
push 0x4474d0
push 0x4474e0
mov ecx, 0x457880
call fcn.0041361e
cmp dword [esp + 0x20], 0
mov edi, eax
push 0
je 0x405f0b
push str.ProxyPwd
push 0x4474e0
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x457880
call fcn.004137a7
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x10064], 3
call fcn.004011b0
add esp, 8
mov esi, eax
push 0
push str.ProxyUser
push 0x4474e0
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x457880
mov byte [esp + 0x1006c], 4
call fcn.004137a7
mov esi, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xd4]
push 0
push 0
push 3
push esi
push eax
push edi
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405eb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1005c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ede
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1005c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405f24
mov eax, dword [ebp + 0xd4]
push 0
push 3
push 0
push 0
push edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edi, eax
test edi, edi
jne 0x405f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0040c3d4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405f48
push 0x80004005
call fcn.00401770
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x1005c], 5
mov ecx, dword [ebp + 0xcc]
push ecx
lea edx, [esp + 0x18]
push str._KTSite.dll_GetServerStatus_username_smode0
push edx
call fcn.00401b70
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x84400000
push 0
push 0
push str.HTTP_1.1
push eax
push 0x44819c
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea ecx, [esp + 0x2c]
push ecx
mov esi, eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x4c]
push eax
push 0x13
push esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xffff
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x1001
push 0x448088
lea ecx, [esp + 0x3c]
call fcn.00418c82
push 0
push 0
push 0
push 0
push esi
mov byte [esp + 0x10070], 6
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x406051
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x18]
push ecx
push 0xffff
lea edx, [esp + 0x4c]
push edx
push esi
call ebp
test eax, eax
je 0x406044
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406044
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
call fcn.004183eb
lea ecx, [esp + 0x18]
push ecx
push 0xffff
lea edx, [esp + 0x4c]
push edx
push esi
call ebp
test eax, eax
jne 0x406017
lea ecx, [esp + 0x34]
call fcn.0041863b
mov ebp, dword [esp + 0x28]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x1005c], 5
call fcn.004187aa
mov dword [esp + 0x1005c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40609c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x10054]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10038]
xor ecx, esp
call fcn.0042769e
add esp, 0x1004c
ret 4