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

Disassembly:
push ebp
sub esp, 0xb30
lea ebp, [esp - 4]
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0xb30], eax
push 0x90
mov eax, 0x1013b943
call fcn.101018e5
mov eax, dword [ebp + 0xb3c]
mov ecx, dword [ebp + 0xb4c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xb44]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xb48]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
jne 0x1004ae3b
xor eax, eax
jmp 0x1004b216
push ebx
push ebx
push ebx
push ebx
push str.BaiduToolarSpaceUpload
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1004b1b6
cmp eax, 0xffffffff
je 0x1004b1b6
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
pop edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push 2
push eax
mov dword [ebp - 0x24], 0x3a98
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push 5
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push 5
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push 6
push dword [ebp - 0x18]
call esi
push edi
lea eax, [ebp - 0x24]
push eax
push 6
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x20], ebx
je 0x1004aece
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1004aed2
xor edi, edi
jmp 0x1004aeee
lea esi, [eax + eax]
mov eax, esi
call fcn.10102de0
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push dword [ebp - 0x20]
push eax
call fcn.1000c619
mov edi, eax
cmp dword [ebp - 0x1c], ebx
je 0x1004af04
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1004af08
xor esi, esi
jmp 0x1004af24
lea esi, [eax + eax]
mov eax, esi
call fcn.10102de0
mov dword [ebp - 0x10], esp
mov eax, esp
push ebx
push esi
push dword [ebp - 0x1c]
push eax
call fcn.1000c619
mov esi, eax
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xb40]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x30], eax
je 0x1004b1a2
cmp eax, 0xffffffff
je 0x1004b1a2
push ebx
push 0x4400040
lea ecx, [ebp - 0x70]
push ecx
push ebx
push 0x10159dec
push esi
push 0x10159de4
push eax
mov dword [ebp - 0x70], 0x10159de0
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x1004b18e
cmp esi, 0xffffffff
je 0x1004b18e
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push SysReAllocString
push 0xffffffffffffffff
push 0x10159a60
push esi
call edi
test eax, eax
jne 0x1004afb9
mov dword [ebp - 0x54], 0x10159da8
push 0x1017f7c4
lea eax, [ebp - 0x54]
push eax
call fcn.10100bbb
push 0x10000000
push 0xffffffffffffffff
push 0x10159a70
push esi
call edi
test eax, eax
jne 0x1004afdd
mov dword [ebp - 0x68], 0x10159da8
push 0x1017f7c4
lea eax, [ebp - 0x68]
jmp 0x1004afb3
mov esi, dword [ebp - 0x38]
push 0x103
lea eax, [ebp + 0xa2d]
push ebx
add esi, 0x28
push eax
mov dword [ebp - 0x20], esi
mov byte [ebp + 0xa2c], bl
call fcn.101027c0
push esi
push 0x10159d90
push 0xffffffffffffffff
lea eax, [ebp + 0xa2c]
push 0x104
push eax
call fcn.1010314f
add esp, 0x20
push 0xa0000000
push 0xffffffffffffffff
lea eax, [ebp + 0xa2c]
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x1004b045
mov dword [ebp - 0x64], 0x10159d50
push 0x1017f7c4
lea eax, [ebp - 0x64]
jmp 0x1004afb3
push 0xa
pop ecx
push ebx
xor eax, eax
push ebx
lea edi, [ebp - 0x9c]
rep stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x9c], 0x28
mov dword [ebp - 0x80], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x1004b08a
mov dword [ebp - 0x58], 0x10159d1c
push 0x1017f7c4
lea eax, [ebp - 0x58]
jmp 0x1004afb3
push esi
call fcn.10100af4
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x38]
push edi
push dword [ebp - 0x2c]
mov byte [ebp - 4], 1
push esi
call fcn.10102a40
add esp, 0xc
push 0xa
pop ecx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
add edi, esi
push dword [ebp - 0x1c]
mov esi, 0x10159ac0
push dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x1004b0e4
mov dword [ebp - 0x60], 0x10159d00
push 0x1017f7c4
lea eax, [ebp - 0x60]
jmp 0x1004afb3
push ebx
push 8
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_HttpEndRequestA]
mov esi, 0xa28
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.101027c0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x50], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1004b134
mov dword [ebp - 0x3c], str.Response_Failed
push 0x1017f7c4
lea eax, [ebp - 0x3c]
jmp 0x1004afb3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x28]
call fcn.10036445
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10025598
lea ecx, [ebp - 0x28]
call fcn.10025545
push 0x1015934c
push dword [ebp - 0x28]
call fcn.10002de4
test eax, eax
pop ecx
pop ecx
je 0x1004b17b
mov dword [ebp - 0x5c], str.Response_Error
push 0x1017f7c4
lea eax, [ebp - 0x5c]
jmp 0x1004afb3
lea ecx, [ebp - 0x28]
call fcn.100015d9
push dword [ebp - 0x1c]
call fcn.10100bb6
pop ecx
jmp 0x1004b1e9
mov dword [ebp - 0x40], 0x10159c98
push 0x1017f7c4
lea eax, [ebp - 0x40]
jmp 0x1004afb3
mov dword [ebp - 0x44], 0x10159c78
push 0x1017f7c4
lea eax, [ebp - 0x44]
jmp 0x1004afb3
mov dword [ebp - 0x4c], 0x10159c58
push 0x1017f7c4
lea eax, [ebp - 0x4c]
jmp 0x1004afb3
cmp dword [ebp - 0x14], ebx
je 0x1004b1f7
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x1004b205
push dword [ebp - 0x30]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x18], ebx
je 0x1004b213
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0xac]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb30]
xor ecx, ebp
call fcn.101018a3
add ebp, 0xb34
leave
ret 0x14