Function at 0x404c60
Capabilities:
Create http request
Get http response content encoding
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436c9c
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x446414]
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 + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], ecx
test esi, esi
je 0x404d27
push 0
push 0
push 0
push 0
push str.Kingdee_Http_Client
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x81c], ebx
test ebx, ebx
jne 0x404d45
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_Failed__Error_ID_:__d
lea edi, [ebp - 0x818]
call fcn.00404180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x818]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.0041fcea
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
je 0x404d5f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d50
sub eax, edx
sar eax, 1
push 0
push 0x84000000
push eax
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x830], esi
test esi, esi
jne 0x404db4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpenUrl_Failed__Error_ID_:__d
jmp 0x404cf0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x212]
push edx
mov word [ebp - 0x214], cx
call fcn.004224d0
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x214]
push edx
push 5
mov ebx, 0x200
push esi
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], 0
call edi
test eax, eax
jne 0x404e4e
mov eax, dword [ebp - 0x81c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push esi
call edi
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpQueryInfo_Failed__Error_ID_:__d
jmp 0x404cf0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.004224d0
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x414]
push edx
push 0x1d
push esi
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x824], 0
call edi
lea eax, [ebp - 0x214]
push eax
xor edi, edi
call fcn.0042137b
add esp, 4
mov ebx, eax
lea esp, [esp]
cmp edi, ebx
jb 0x404ef6
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x404ec5
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x404ed0
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x828], 0
je 0x404eec
lea ecx, [ebp - 0x414]
push ecx
mov ecx, dword [ebp - 0x82c]
push ebx
call fcn.00405040
mov eax, 1
jmp 0x404d29
push 0x3ff
lea edx, [ebp - 0x813]
push 0
push edx
mov byte [ebp - 0x814], 0
call fcn.004224d0
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push 0x400
lea ecx, [ebp - 0x814]
push ecx
push esi
mov dword [ebp - 0x818], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404fa0
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x404f4c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x404f57
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x81c], eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetReadFile_Failed__Error_ID_:__d
lea edi, [ebp - 0x81c]
call fcn.00404180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x81c]
jmp 0x404d08
add edi, dword [ebp - 0x818]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x818]
test eax, eax
jne 0x404fdd
mov eax, dword [ebp - 0x81c]
test eax, eax
je 0x404fc9
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x404d27
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x404d27
cmp dword [ebp - 0x828], 0
mov dword [ebp - 4], 4
je 0x404fff
mov ecx, dword [ebp - 0x82c]
push eax
lea edx, [ebp - 0x814]
call fcn.004052c0
mov dword [ebp - 4], 0xffffffff
jmp 0x404eb0