Function at 0x100127ab
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.10027390
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x10041234
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 0x10012836
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10027390
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 0x10012849
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.100131dc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001286e
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.10013684
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012891
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x1003f2d1
push dword [ebp - 8]
call fcn.10001804
add esp, 8
cmp eax, 0
jne 0x100128c8
mov eax, 0x100410dd
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100128c4
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x28], 0
jne 0x100128d9
mov dword [ebp + 0x28], 0x50
cmp dword [ebp + 0x30], 0
jne 0x100128ea
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 0x10012900
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2d1
mov ebx, dword [ebp + 0x10]
push dword [ebx]
call fcn.10001804
add esp, 8
cmp eax, 0
je 0x100129fb
mov eax, str.POST
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10012935
push ebx
call fcn.1002738a
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.10001925
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012965
push ebx
call fcn.1002738a
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 0x1001297e
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.10027ca0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.100279d0
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x1003f7a8
push dword [ebp - 0x34]
push str.Content_Length:
push dword [ebp - 0xc]
mov ecx, 4
call fcn.10001925
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x100129de
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100129f2
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
jmp 0x10012a15
mov eax, 0x100411ee
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10012a11
push ebx
call fcn.1002738a
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.10001925
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012a41
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x1003f2d1
mov ebx, dword [ebp + 0x38]
push dword [ebx]
call fcn.10001804
add esp, 8
cmp eax, 0
jne 0x10012aa2
mov dword [ebp - 0x30], esp
push 0
push dword [0x10046f7b]
push dword [0x10046f7b]
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 0x10012a9a
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x14], eax
jmp 0x10012b0c
mov ebx, dword [ebp + 0x38]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.10001925
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [0x10046f7b]
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 0x10012af3
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10012b06
push ebx
call fcn.1002738a
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 [0x10046f7b]
push dword [0x10046f7b]
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 0x10012b4f
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012b70
push 1
call fcn.10027396
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 0x10012ba7
push 6
call fcn.10027396
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012bc5
push 1
call fcn.10027396
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 0x10012bfc
push 6
call fcn.10027396
add esp, 4
mov ebx, dword [ebp - 0x1c]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x10012c1a
push 1
call fcn.10027396
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 0x10012c51
push 6
call fcn.10027396
add esp, 4
push 0x1003f2d1
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call fcn.10001804
add esp, 8
cmp eax, 0
mov eax, 0
setne al
test eax, eax
je 0x10012c99
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x10012c94
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012cb7
mov eax, dword [0x10046f7b]
test eax, eax
je 0x10012cb7
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
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.100282a0
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 0x10012d3c
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10012d4f
push ebx
call fcn.1002738a
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 0x10012d85
push 6
call fcn.10027396
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 0x10012db5
push 6
call fcn.10027396
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 0x10012de5
push 6
call fcn.10027396
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10012df8
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.10027ca0
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 0x10012e23
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x130
call fcn.10027ca0
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 0x10012e69
push 6
call fcn.10027396
add esp, 4
test eax, eax
je 0x1001310a
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.100025d7
test eax, eax
je 0x10012fd7
push 0x80000301
push 0
push 0x10000
push 1
mov ebx, 0x1bc
call fcn.10028670
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10012ebf
push ebx
call fcn.1002738a
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 0x10012ed9
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 0x10012ef9
push 6
call fcn.10027396
add esp, 4
test eax, eax
je 0x10012fd7
cmp dword [ebp - 0x28], 0x10000
jne 0x10012f47
push dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ecx, 2
call fcn.100091d9
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 0x10012f3c
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x10012fd2
cmp dword [ebp - 0x28], 0
jle 0x10012fcd
push 0x80000301
push 0
push dword [ebp - 0x28]
push htons
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10012f6e
mov eax, 0x1003f2c9
push eax
push 2
mov ebx, 0x1a0
call fcn.10028cf0
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.100091d9
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10012fac
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10012fc2
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
jmp 0x10012fd2
jmp 0x10012fd7
jmp 0x10012ec3
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.100026a9
mov eax, 0x1003f2c9
test eax, eax
je 0x10013004
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10027390
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 0x10013015
push ebx
call fcn.1002738a
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 0x1001310a
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.10027f50
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 0x10013070
push ebx
call fcn.1002738a
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 0x100130b9
push 6
call fcn.10027396
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 0x100130d8
mov eax, 0x1003f2d1
push eax
push 2
mov ebx, 0x134
call fcn.100280d0
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 0x10013104
push ebx
call fcn.1002738a
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 0x1001312c
push 6
call fcn.10027396
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 0x1001314e
push 6
call fcn.10027396
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 0x10013170
push 6
call fcn.10027396
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x10013178
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10013189
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10013199
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x100131a9
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100131b9
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x100131d5
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x40