Function at 0x100127dd
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
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x14
call fcn.10026bb6
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x10041235
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov eax, 0x1003f2c9
test eax, eax
je 0x10012868
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x1001287b
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.1001320e
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100128a0
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.100136b6
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100128c3
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x1003f2d1
push dword [ebp - 8]
call fcn.10001836
add esp, 8
cmp eax, 0
jne 0x100128fa
mov eax, 0x100410de
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100128f6
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x28], 0
jne 0x1001290b
mov dword [ebp + 0x28], 0x50
cmp dword [ebp + 0x30], 0
jne 0x1001291c
mov dword [ebp + 0x30], 0xea60
mov eax, str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_nAccept_Language:_zh_cn_r_n
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012932
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2d1
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.10001836
add esp, 8
cmp eax, 0
je 0x10012a2d
mov eax, str.POST
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10012967
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [ebp - 0xc]
mov ecx, 2
call fcn.10001957
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012997
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x100129b0
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.100274c0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100271f0
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x1003f7a9
push dword [ebp - 0x34]
push str.Content_Length:
push dword [ebp - 0xc]
mov ecx, 4
call fcn.10001957
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10012a10
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012a24
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x10012a47
mov eax, 0x100411ef
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10012a43
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 0x20]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.10001957
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012a73
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2d1
mov ebx, dword [ebp + 0x38]
push dword [ebx]
call fcn.10001836
add esp, 8
cmp eax, 0
jne 0x10012ad4
mov dword [ebp - 0x30], esp
push 0
push dword [0x10046f3b]
push dword [0x10046f3b]
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012acc
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x10012b3e
mov ebx, dword [ebp + 0x38]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.10001957
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [0x10046f3b]
push dword [ebp - 0x30]
push 3
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10012b25
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10012b38
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 3
push dword [0x10046f3b]
push dword [0x10046f3b]
push dword [ebp + 0x28]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012b81
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012ba2
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
push 0xc
push dword [ebp - 0x30]
push 0x20
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10012bd9
push 6
call fcn.10026bbc
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012bf7
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
push 1
push dword [ebp - 0x30]
push 0x2b
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10012c2e
push 6
call fcn.10026bbc
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012c4c
push 1
call fcn.10026bbc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esp
push 1
push dword [ebp - 0x30]
push 0x2c
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10012c83
push 6
call fcn.10026bbc
add esp, 4
push 0x1003f2d1
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call fcn.10001836
add esp, 8
cmp eax, 0
mov eax, 0
setne al
test eax, eax
je 0x10012ccb
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x10012cc6
push eax
mov ebx, eax
call fcn.100018ec
inc eax
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012ce9
mov eax, dword [0x10046f3b]
test eax, eax
je 0x10012ce9
push eax
mov ebx, eax
call fcn.100018ec
inc eax
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x34], eax
push 0x80000301
push 0
push pe_nt_image_headers32
push 0x80000301
push 0
push 0x800
push 0x80000301
push 0
push 0x4000000
push 0x80000301
push 0
push SysReAllocString
push 4
mov ebx, 0xc8
call fcn.10027ac0
add esp, 0x34
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push dword [ebp - 0x38]
push 0
push dword [ebp - 0x34]
push str.HTTP_1.1
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x10012d6e
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10012d81
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], esp
push 4
lea eax, [ebp + 0x30]
push eax
push 2
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012db7
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x30], esp
push 4
lea eax, [ebp + 0x30]
push eax
push 6
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012de7
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x30], esp
push 4
lea eax, [ebp + 0x30]
push eax
push 5
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012e17
push 6
call fcn.10026bbc
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10012e2a
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.100274c0
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x10012e55
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.100274c0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push dword [ebp - 0x30]
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x10012e9b
push 6
call fcn.10026bbc
add esp, 4
test eax, eax
je 0x1001313c
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.10002609
test eax, eax
je 0x10013009
push 0x80000301
push 0
push 0x10000
push 1
mov ebx, 0x1bc
call fcn.10027e90
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10012ef1
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x28]
push eax
push 0x10000
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10012f0b
add eax, 8
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10012f2b
push 6
call fcn.10026bbc
add esp, 4
test eax, eax
je 0x10013009
cmp dword [ebp - 0x28], 0x10000
jne 0x10012f79
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.1000920b
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10012f6e
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x10013004
cmp dword [ebp - 0x28], 0
jle 0x10012fff
push 0x80000301
push 0
push dword [ebp - 0x28]
push htons
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10012fa0
mov eax, 0x1003f2c9
push eax
push 2
mov ebx, 0x1a0
call fcn.10028510
add esp, 0x1c
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.1000920b
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10012fde
push ebx
call fcn.10026bb0
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10012ff4
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x10013004
jmp 0x10013009
jmp 0x10012ef5
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.100026db
mov eax, 0x1003f2c9
test eax, eax
je 0x10013036
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10026bb6
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10013047
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], 1
cmp dword [ebp + 0x44], 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x1001313c
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.10027770
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x40]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100130a2
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x40]
mov dword [ebx], eax
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 0x30], esp
mov eax, 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x40]
push dword [ebx]
push 0x16
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x100130eb
push 6
call fcn.10026bbc
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x28]
push 0x80000004
push 0
mov ebx, dword [ebp + 0x40]
mov eax, dword [ebx]
test eax, eax
jne 0x1001310a
mov eax, 0x1003f2d1
push eax
push 2
mov ebx, 0x134
call fcn.100278f0
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x40]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10013136
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov ebx, dword [ebp + 0x40]
mov dword [ebx], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x1001315e
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10013180
push 6
call fcn.10026bbc
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x100131a2
push 6
call fcn.10026bbc
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x100131aa
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100131bb
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100131cb
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100131db
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100131eb
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.10026bb0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10013207
push ebx
call fcn.10026bb0
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x40