Function at 0x10012ee4
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.10026462
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x1004125a
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, 0x1003f2d7
test eax, eax
je 0x10012f6f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10026462
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 0x10012f82
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.10013915
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012fa7
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10013dbd
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012fca
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x1003f2df
push dword [ebp - 8]
call fcn.10001ad7
add esp, 8
cmp eax, 0
jne 0x10013001
mov eax, 0x10041103
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012ffd
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x28], 0
jne 0x10013012
mov dword [ebp + 0x28], 0x50
cmp dword [ebp + 0x30], 0
jne 0x10013023
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 0x10013039
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2df
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.10001ad7
add esp, 8
cmp eax, 0
je 0x10013134
mov eax, str.POST
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001306e
push ebx
call fcn.1002645c
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.10001bf8
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001309e
push ebx
call fcn.1002645c
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 0x100130b7
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x130
call fcn.10026d40
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.10026a70
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x1003f813
push dword [ebp - 0x34]
push str.Content_Length:
push dword [ebp - 0xc]
mov ecx, 4
call fcn.10001bf8
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10013117
push ebx
call fcn.1002645c
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001312b
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x1001314e
mov eax, 0x10041214
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001314a
push ebx
call fcn.1002645c
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.10001bf8
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x1001317a
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2df
mov ebx, dword [ebp + 0x38]
push dword [ebx]
call fcn.10001ad7
add esp, 8
cmp eax, 0
jne 0x100131db
mov dword [ebp - 0x30], esp
push 0
push dword [0x10042072]
push dword [0x10042072]
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 0x100131d3
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x10013245
mov ebx, dword [ebp + 0x38]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.10001bf8
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [0x10042072]
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 0x1001322c
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1001323f
push ebx
call fcn.1002645c
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 [0x10042072]
push dword [0x10042072]
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 0x10013288
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
call fcn.10001254
mov eax, 0
cmp eax, ecx
jl 0x100132a9
push 1
call fcn.10026468
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 0x100132e0
push 6
call fcn.10026468
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.10001254
mov eax, 0
cmp eax, ecx
jl 0x100132fe
push 1
call fcn.10026468
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 0x10013335
push 6
call fcn.10026468
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.10001254
mov eax, 0
cmp eax, ecx
jl 0x10013353
push 1
call fcn.10026468
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 0x1001338a
push 6
call fcn.10026468
add esp, 4
push 0x1003f2df
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call fcn.10001ad7
add esp, 8
cmp eax, 0
mov eax, 0
setne al
test eax, eax
je 0x100133d2
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x100133cd
push eax
mov ebx, eax
call fcn.10001b8d
inc eax
push eax
call fcn.10026462
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x100133f0
mov eax, dword [0x10042072]
test eax, eax
je 0x100133f0
push eax
mov ebx, eax
call fcn.10001b8d
inc eax
push eax
call fcn.10026462
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x34], eax
push 0x80000301
push 0
push 0x100
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.10027340
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 0x10013475
push 6
call fcn.10026468
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10013488
push ebx
call fcn.1002645c
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 0x100134be
push 6
call fcn.10026468
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 0x100134ee
push 6
call fcn.10026468
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 0x1001351e
push 6
call fcn.10026468
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10013531
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x130
call fcn.10026d40
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 0x1001355c
mov eax, 0x1003f2df
push eax
push 1
mov ebx, 0x130
call fcn.10026d40
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 0x100135a2
push 6
call fcn.10026468
add esp, 4
test eax, eax
je 0x10013843
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.100028aa
test eax, eax
je 0x10013710
push 0x80000301
push 0
push 0x10000
push 1
mov ebx, 0x1bc
call fcn.10027710
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100135f8
push ebx
call fcn.1002645c
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 0x10013612
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 0x10013632
push 6
call fcn.10026468
add esp, 4
test eax, eax
je 0x10013710
cmp dword [ebp - 0x28], 0x10000
jne 0x10013680
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.100094ac
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 0x10013675
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x1001370b
cmp dword [ebp - 0x28], 0
jle 0x10013706
push 0x80000301
push 0
push dword [ebp - 0x28]
push htons
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x100136a7
mov eax, 0x1003f2d7
push eax
push 2
mov ebx, 0x1a0
call fcn.10027f60
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.100094ac
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x100136e5
push ebx
call fcn.1002645c
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100136fb
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x1001370b
jmp 0x10013710
jmp 0x100135fc
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.1000297c
mov eax, 0x1003f2d7
test eax, eax
je 0x1001373d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10026462
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 0x1001374e
push ebx
call fcn.1002645c
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 0x10013843
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.10026ff0
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 0x100137a9
push ebx
call fcn.1002645c
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 0x100137f2
push 6
call fcn.10026468
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 0x10013811
mov eax, 0x1003f2df
push eax
push 2
mov ebx, 0x134
call fcn.10027170
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 0x1001383d
push ebx
call fcn.1002645c
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 0x10013865
push 6
call fcn.10026468
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 0x10013887
push 6
call fcn.10026468
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 0x100138a9
push 6
call fcn.10026468
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x100138b1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100138c2
push ebx
call fcn.1002645c
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100138d2
push ebx
call fcn.1002645c
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100138e2
push ebx
call fcn.1002645c
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100138f2
push ebx
call fcn.1002645c
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.1002645c
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1001390e
push ebx
call fcn.1002645c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x40