Function at 0x416200
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x640
mov eax, dword [0x47c944]
xor eax, esp
mov dword [esp + 0x63c], eax
mov eax, dword [esp + 0x644]
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x42]
push edx
mov dword [esp + 0x18], eax
mov edi, 0x50
mov dword [esp + 0x14], 0
mov word [esp + 0x44], cx
call fcn.00447b40
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x256]
push ecx
mov word [esp + 0x258], ax
call fcn.00447b40
push str.5054399.com
push str.http:__client.5054399.com_notice_hjsg.txt
call fcn.00445446
add esp, 0x20
test eax, eax
jne 0x4162bb
push str.4399.com
push str.http:__client.5054399.com_notice_hjsg.txt
call fcn.00445446
add esp, 8
test eax, eax
jne 0x4162bb
push str.4399pk.com
push str.http:__client.5054399.com_notice_hjsg.txt
call fcn.00445446
add esp, 8
test eax, eax
jne 0x4162bb
pop edi
mov ecx, dword [esp + 0x63c]
xor ecx, esp
call fcn.00445369
add esp, 0x640
ret 4
push esi
push 0x2f
push 0x46db76
call fcn.004460f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4162fb
mov edx, esi
sub edx, 0x46db76
sar edx, 1
inc edx
push edx
push 0x46db76
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esi, 2
push esi
lea ecx, [esp + 0x248]
push ecx
jmp 0x416305
push 0x46db76
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x3c]
push 0x3a
push eax
call fcn.004460f0
add esp, 8
test eax, eax
je 0x416332
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00445d12
add esp, 4
movzx edi, ax
push 0
push 0
push 0
push 0
push 0x46ac44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x4164e6
push ebp
push 0
push 0
push 3
push 0
push 0
push edi
lea edx, [esp + 0x58]
push edx
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebp, eax
test ebp, ebp
je 0x4164de
push 0
push SysReAllocStringLen
push 0
push 0
push str.HTTP_1.1
lea eax, [esp + 0x25c]
push eax
push 0x46ac60
push ebp
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x4164d7
mov eax, str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
lea edx, [eax + 2]
jmp 0x4163b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4163b0
push 0
sub eax, edx
push 0
sar eax, 1
push eax
push str.Accept_Language:_zh_cn__r_nContent_Type:_application_x_www_form_urlencoded_r_n
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4164cc
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x13
push edi
mov byte [esp + 0x34], 0
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov word [esp + 0x51], ax
mov byte [esp + 0x53], al
mov dword [esp + 0x20], 0x20
call esi
test eax, eax
je 0x4164cc
lea eax, [esp + 0x20]
push eax
call fcn.00445d12
add esp, 4
cmp eax, 0x194
je 0x4164cc
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x28]
push edx
push 0x20000005
push edi
call esi
test eax, eax
je 0x4164cc
cmp dword [esp + 0xc], 4
jne 0x4164cc
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
cmp eax, 0x400
jae 0x4164cc
push eax
call fcn.00418469
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4164a1
push esi
call fcn.0041845e
jmp 0x4164c9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0x400
push edx
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.0041845e
mov dword [esp + 0x14], 1
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x1c]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebp
mov ecx, dword [esp + 0x644]
mov eax, dword [esp + 0xc]
pop esi
pop edi
xor ecx, esp
call fcn.00445369
add esp, 0x640
ret 4