Function at 0x100052a3
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, 0x38
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
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 0x18], 0
jne 0x10005374
push 0x80000004
push 0
push 0x1003f5fc
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x1003f275
push 0x1003f275
push 1
push dword [ebp - 0x28]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10005356
push 0x58
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10005369
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
jmp 0x1000544f
push 0x80000004
push 0
push 0x1003f5fc
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.10001568
add esp, 8
mov dword [ebp - 0x2c], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x100053c2
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x100053e8
push ebx
call fcn.1001fa0a
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x1003f275
push dword [ebp - 0x30]
push 3
push dword [ebp - 0x28]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10005426
push 0x155
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10005439
push ebx
call fcn.1001fa0a
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10005449
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10005463
mov eax, 0x1003f2e4
jmp 0x10005dce
push dword [ebp + 8]
call fcn.10005e06
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call fcn.100061d7
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0
push 3
push 0x1003f275
push 0x1003f275
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x100054c4
push 0x25c
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x100054d7
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000551d
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005513
push 0x2d5
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov eax, 0x1003f2e4
jmp 0x10005dce
push 0x80000004
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x10005532
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x150
call fcn.100212a0
add esp, 0x10
mov dword [ebp - 0x28], eax
push str.POST
push dword [ebp - 0x28]
call fcn.100015c4
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10005576
push ebx
call fcn.1001fa0a
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x1000559e
mov eax, 0x1003f63a
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005598
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push dword [ebp + 8]
call fcn.100065fb
mov dword [ebp - 0x28], eax
push 0x80000004
push 0
push 0x1003f275
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000004
push 0
push 0x1003f275
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push 0x80000000
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push str.HTTP_1.1
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10005634
push 0x424
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10005647
push ebx
call fcn.1001fa0a
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10005657
push ebx
call fcn.1001fa0a
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10005667
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100056d9
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x100056a3
push 0x487
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x100056cf
push 0x4a1
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov eax, 0x1003f2e4
jmp 0x10005dce
mov dword [ebp - 0x10], 0x4650
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1000571a
push 0x543
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 6
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005757
push 0x58c
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 4
lea eax, [ebp - 0x10]
push eax
push 5
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005794
push 0x5d5
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Accept:
push 0x80000004
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x100057d0
mov eax, 0x1003f275
push eax
push 4
mov ebx, 0x148
call fcn.100221e0
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x10005826
push 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_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.10001568
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005820
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Referer:
push 0x80000004
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x1000585f
mov eax, 0x1003f275
push eax
push 4
mov ebx, 0x148
call fcn.100221e0
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x100058bf
push 0x1003f709
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.10001568
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x100058b9
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x80000002
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
push str.Accept_Language:
push 0x80000004
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x100058f8
mov eax, 0x1003f275
push eax
push 4
mov ebx, 0x148
call fcn.100221e0
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x1000594e
push str.Accept_Language:_zh_cn_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.10001568
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005948
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x1003f63a
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100015c4
add esp, 8
cmp eax, 0
jne 0x100059d7
push 0x80000004
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x1000597e
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x130
call fcn.10020500
add esp, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push 0x1003f275
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x100059d2
push 0x990
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
jmp 0x10005b4d
push 0x1003f275
mov ebx, dword [ebp + 0x24]
push dword [ebx]
call fcn.100015c4
add esp, 8
cmp eax, 0
je 0x10005abb
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 2
call fcn.10001568
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005a22
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x10005a3d
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x130
call fcn.10020500
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.10020120
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x1003f709
push dword [ebp - 0x2c]
push str.Content_Length:
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
mov ecx, 4
call fcn.10001568
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10005a9f
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005ab5
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x10005ad0
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x130
call fcn.10020500
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x80000004
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x10005afb
mov eax, 0x1003f275
push eax
push 1
mov ebx, 0x130
call fcn.10020500
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10005b4d
push 0xb2e
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
jle 0x10005c5f
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x1bc
call fcn.10020b00
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10005b93
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0
mov ebx, 0x350
call fcn.10020040
add esp, 4
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x18]
push eax
push 0x200
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10005bbf
add eax, 8
push eax
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005be9
push 0xc21
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 0x18]
push 0x80000005
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x10005c06
mov eax, 0x1003f2e4
push eax
push 2
mov ebx, 0x1a0
call fcn.10022640
add esp, 0x1c
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.100038c3
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10005c42
push ebx
call fcn.1001fa0a
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10005c56
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x10005b54
cmp dword [ebp + 0x30], 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x10005d2b
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x184
call fcn.10020930
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10005cad
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push 0
mov eax, 0x400
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x24]
push 0x16
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005cf6
push 0xd34
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10005d12
push eax
mov ebx, eax
call fcn.100014fd
inc eax
push eax
call fcn.1001fa04
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10005d25
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005d57
push 0xdc5
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005d83
push 0xddf
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov dword [ebp - 0x28], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x10005daf
push 0xdf9
push 0x404878b
push 6
call fcn.1001fa1c
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10005dc9
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1001fa04
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10005dce
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10005ddf
push ebx
call fcn.1001fa0a
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10005def
push ebx
call fcn.1001fa0a
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10005dff
push ebx
call fcn.1001fa0a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x2c