Function at 0x407ace
Capabilities:
Connect to http server
Create http request
Make an http request with a cookie
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
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
push 8
call fcn.004ef2d0
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x50a2c9
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x407b4f
mov eax, 0x5e2fbc
jmp 0x407b54
mov eax, 0x5e2fc1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407b6b
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.User_Agent:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x407ba2
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x407caf
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x5e2fd1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.User_Agent:
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x2c]
call fcn.00408dcd
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x407c0d
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x407c1d
push ebx
call fcn.004ef2d6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x407c30
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x174
call fcn.004f0b20
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407c56
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407c6a
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x50a290
push dword [ebp - 8]
call fcn.00401030
add esp, 8
cmp eax, 0
jne 0x407caa
push dword [ebp + 0x2c]
call fcn.0040908e
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407ca6
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x407cc9
mov eax, str.Mozilla_4.0__compatible__MSIE_9.0__Windows_NT_6.1__125LA__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.21022_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x407cc5
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x407d75
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 1
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x407d47
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x407d5a
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407d6a
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x407e15
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.004013e3
add esp, 8
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x407da2
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x168
call fcn.004ef970
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x407dc8
push ebx
call fcn.004ef2d6
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x50a290
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x407dfc
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x407e0f
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407e4b
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x407e41
push 6
call fcn.004ef2dc
add esp, 4
mov eax, 0x50a2c9
jmp 0x408d40
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.004091d4
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.0040977d
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push 0
push 3
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x407ef8
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x407f0b
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x407f1b
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x407f2b
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407f89
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x407f5d
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x407f7f
push 6
call fcn.004ef2dc
add esp, 4
mov eax, 0x50a2c9
jmp 0x408d40
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push SysReAllocString
push 2
mov ebx, 0xc8
call fcn.004f0bd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x407ffb
push 0x80000301
push 0
push 0x80000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.004f0bd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x408030
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.004f0bd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 5
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x408051
mov eax, 0x50a290
push eax
push 2
mov ebx, 0x134
call fcn.004f0730
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40807a
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x154
call fcn.004f0860
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4080a0
push ebx
call fcn.004ef2d6
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.00401030
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4080ce
push ebx
call fcn.004ef2d6
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x408108
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.004f0bd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x408133
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.004f0bd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.004099b1
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.004f0bb0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0x5e305a
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x4081bb
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4081ce
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4081de
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4081ee
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40826e
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408220
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408242
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408264
push 6
call fcn.004ef2dc
add esp, 4
mov eax, 0x50a2c9
jmp 0x408d40
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x5e3063
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x4082a1
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x408352
push 0x50a290
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401030
add esp, 8
cmp eax, 0
jne 0x408317
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 2
call fcn.004013e3
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40830c
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
jmp 0x408352
mov ebx, dword [ebp + 8]
push dword [ebx]
push str._r_nReferer:
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 3
call fcn.004013e3
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40834c
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x408385
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4083db
push str._r_nAccept:__
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004013e3
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4083d5
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Accept_Language:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40840e
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x408464
push str._r_nAccept_Language:_zh_cn
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004013e3
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40845e
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Content_Type:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x408497
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4084ed
push str._r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004013e3
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4084e7
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x50a290
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401030
add esp, 8
cmp eax, 0
je 0x408543
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
push str._r_nCookie:
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 3
call fcn.004013e3
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40853d
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x4085b1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x408562
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x130
call fcn.004f0710
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0x50a290
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x4085ac
push 6
call fcn.004ef2dc
add esp, 4
jmp 0x4086cb
mov eax, 0x50a2c9
xor ecx, ecx
test eax, eax
je 0x4085bf
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x4085d2
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4085e9
dec eax
test ecx, ecx
je 0x4085e9
call fcn.00407a22
add esp, 0xc
test eax, eax
jne 0x40863b
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x408609
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x198
call fcn.004f0440
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x44]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408635
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x44]
mov dword [ebx], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x408650
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x130
call fcn.004f0710
add esp, 0x10
mov dword [ebp - 0x2c], eax
push VariantCopy
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x40867b
mov eax, 0x50a2c9
push eax
push 1
mov ebx, 0x194
call fcn.004f0530
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
je 0x4086a3
add eax, 8
push eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4086cb
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.004efc40
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408707
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push 0x400
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408721
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408741
push 6
call fcn.004ef2dc
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x408755
jmp 0x4087cb
push 0x80000301
push 0
push dword [ebp - 0x1c]
push VariantCopy
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x408772
mov eax, 0x50a2c9
push eax
push 2
mov ebx, 0x1a0
call fcn.004f0bf0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00404de1
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4087ae
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4087c2
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x4086d2
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x184
call fcn.004f0c20
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408802
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0x1388
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push 0x16
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408845
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408867
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x408889
push 6
call fcn.004ef2dc
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4088ab
push 6
call fcn.004ef2dc
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x5e2fd1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x4088d2
mov eax, 0x50a290
push eax
push 3
mov ebx, 0x190
call fcn.004eff70
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40890a
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x408906
imul eax, dword [ebx]
jmp 0x4088fb
mov ecx, eax
test ecx, ecx
je 0x408929
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x408922
push ebx
push eax
call fcn.004ef2d6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x408910
call fcn.004ef2d6
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x50a290
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40894d
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.00402211
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x408c04
mov ebx, dword [ebp - 0x28]
call fcn.0040185f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40898f
push 4
call fcn.004ef2dc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4089a2
push 1
call fcn.004ef2dc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Location:
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x4089dd
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x408a5c
mov ebx, dword [ebp - 0x28]
call fcn.0040185f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x408a1a
push 4
call fcn.004ef2dc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x408a2d
push 1
call fcn.004ef2dc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.0040908e
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408a56
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.0040185f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x408a79
push 4
call fcn.004ef2dc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x408a8c
push 1
call fcn.004ef2dc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.Set_Cookie
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x408ac7
mov eax, 0x50a290
push eax
push 4
mov ebx, 0x148
call fcn.004f08f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x408bfc
mov ebx, dword [ebp - 0x28]
call fcn.0040185f
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x408b04
push 4
call fcn.004ef2dc
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x408b17
push 1
call fcn.004ef2dc
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x5e3122
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call fcn.00408dcd
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x408b6a
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x408b7a
push ebx
call fcn.004ef2d6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x408b8d
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x174
call fcn.004f0b20
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x408bb3
push ebx
call fcn.004ef2d6
add esp, 4
push 0x5e3130
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004013e3
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x408be0
push ebx
call fcn.004ef2d6
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408bf6
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x408964
add esp, 0xc
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x408c1c
mov eax, 0x50a290
push eax
push 1
mov ebx, 0x130
call fcn.004f0710
add esp, 0x10
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x34]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x50a3d2]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.00401efa
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x408c69
mov eax, 0x50a290
push eax
push 2
mov ebx, 0x134
call fcn.004f0730
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408c95
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
cmp dword [ebp + 0x20], 0
mov eax, 0
sete al
and eax, 1
xor eax, 1
test eax, eax
je 0x408ccf
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00409bbf
mov ebx, eax
test ebx, ebx
je 0x408ccf
push ebx
call fcn.004ef2d6
add esp, 4
push 0x50a290
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401030
add esp, 8
cmp eax, 0
jne 0x408d21
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x408d08
push eax
mov ebx, eax
call fcn.00401378
inc eax
push eax
call fcn.004ef2d0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x408d1b
push ebx
call fcn.004ef2d6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x408d3b
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004ef2d0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x408d40
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408d51
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408d61
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408d71
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x408d81
push ebx
call fcn.004ef2d6
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x408d9f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x408d9b
imul eax, dword [ebx]
jmp 0x408d90
mov ecx, eax
test ecx, ecx
je 0x408dbe
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x408db7
push ebx
push eax
call fcn.004ef2d6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x408da5
call fcn.004ef2d6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54