Function at 0x40d979
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, 0x4c
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.0045778b
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x465508
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x40da01
mov eax, str.POST
jmp 0x40da06
mov eax, 0x4655ea
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40da1d
push ebx
call fcn.00457791
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 VariantClear
push 0
push str.User_Agent:
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40da54
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40db61
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x4655fa
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.User_Agent:
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x2c]
call fcn.00405142
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40dabf
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40dacf
push ebx
call fcn.00457791
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40dae2
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x174
call fcn.0045bd20
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40db08
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40db1c
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x4654f7
push dword [ebp - 8]
call fcn.0040166b
add esp, 8
cmp eax, 0
jne 0x40db5c
push dword [ebp + 0x2c]
call fcn.00405403
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40db58
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40db7b
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 0x40db77
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x40dc27
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 1
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40dbf9
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40dc0c
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40dc1c
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
jmp 0x40dcc7
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x30], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40dc54
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x168
call fcn.00459bb0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40dc7a
push ebx
call fcn.00457791
add esp, 4
mov dword [ebp - 0x38], esp
push 0
push 0x4654f7
push dword [ebp - 0x34]
push 3
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x38], esp
je 0x40dcae
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40dcc1
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40dcfd
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40dcf3
push 6
call fcn.00457797
add esp, 4
mov eax, 0x4654f7
jmp 0x40ee70
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.00405549
mov dword [ebp - 0x38], eax
push dword [ebp + 8]
call fcn.00405af2
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x40], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esp
push 0
push 0
push 3
push dword [ebp - 0x44]
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetConnectA]
nop
nop
nop
nop
cmp dword [ebp - 0x48], esp
je 0x40ddaa
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40ddbd
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ddcd
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40dddd
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40de3b
mov dword [ebp - 0x30], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40de0f
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40de31
push 6
call fcn.00457797
add esp, 4
mov eax, 0x4654f7
jmp 0x40ee70
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push SysReAllocString
push 2
mov ebx, 0xc8
call fcn.0045bdd0
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 0x40dead
push 0x80000301
push 0
push 0x80000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.0045bdd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x40dee2
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.0045bdd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 5
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40df03
mov eax, 0x4654f7
push eax
push 2
mov ebx, 0x134
call fcn.00459f40
add esp, 0x1c
mov dword [ebp - 0x30], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40df2c
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x154
call fcn.0045a010
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40df52
push ebx
call fcn.00457791
add esp, 4
push str.https
push dword [ebp - 0x34]
call fcn.0040166b
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40df80
push ebx
call fcn.00457791
add esp, 4
cmp dword [ebp - 0x38], 0
je 0x40dfba
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.0045bdd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x40dfe5
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0xc8
call fcn.0045bdd0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.00405d26
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045bdb0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esp
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push 0x465683
push dword [ebp - 0x30]
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
nop
nop
nop
nop
cmp dword [ebp - 0x3c], esp
je 0x40e06d
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40e080
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40e090
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40e0a0
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40e120
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 0x40e0d2
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40e0f4
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40e116
push 6
call fcn.00457797
add esp, 4
mov eax, 0x4654f7
jmp 0x40ee70
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push 0x46568c
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e153
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e204
push 0x4654f7
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.0040166b
add esp, 8
cmp eax, 0
jne 0x40e1c9
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e1be
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
jmp 0x40e204
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.004011ec
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e1fe
push ebx
call fcn.00457791
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 VariantClear
push 0
push str.Accept:
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e237
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e28d
push str._r_nAccept:__
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e287
push ebx
call fcn.00457791
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 VariantClear
push 0
push str.Accept_Language:
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e2c0
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e316
push str._r_nAccept_Language:_zh_cn
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e310
push ebx
call fcn.00457791
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 VariantClear
push 0
push str.Content_Type:
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e349
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x40e39f
push str._r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e399
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x4654f7
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.0040166b
add esp, 8
cmp eax, 0
je 0x40e3f5
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.004011ec
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e3ef
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x40e463
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e414
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x130
call fcn.0045bb00
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push 0x4654f7
push dword [ebp - 0x30]
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 0x40e45e
push 6
call fcn.00457797
add esp, 4
jmp 0x40e57d
mov eax, 0x465508
xor ecx, ecx
test eax, eax
je 0x40e471
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 0x40e484
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40e49b
dec eax
test ecx, ecx
je 0x40e49b
call fcn.00403bdf
add esp, 0xc
test eax, eax
jne 0x40e4ed
push VariantClear
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x40e4bb
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x198
call fcn.00459590
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x44]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e4e7
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x44]
mov dword [ebx], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40e502
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x130
call fcn.0045bb00
add esp, 0x10
mov dword [ebp - 0x30], eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x40e52d
mov eax, 0x465508
push eax
push 1
mov ebx, 0x194
call fcn.0045bdf0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push dword [ebp - 0x34]
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
je 0x40e555
add eax, 8
push eax
push dword [ebp - 0x30]
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 - 0x38], esp
je 0x40e57d
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.0045be00
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40e5b9
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x1c]
push eax
push 0x400
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40e5d3
add eax, 8
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40e5f3
push 6
call fcn.00457797
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x40e607
jmp 0x40e67d
push 0x80000301
push 0
push dword [ebp - 0x1c]
push VariantClear
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40e624
mov eax, 0x465508
push eax
push 2
mov ebx, 0x1a0
call fcn.0045be30
add esp, 0x1c
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00403c8b
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40e660
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40e674
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x40e584
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x184
call fcn.004597d0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e6b4
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
mov dword [ebp - 0x30], esp
push 0
mov eax, 0x1388
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
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 - 0x30], esp
je 0x40e6f7
push 6
call fcn.00457797
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 0x40e719
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40e73b
push 6
call fcn.00457797
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40e75d
push 6
call fcn.00457797
add esp, 4
push 0
push 0
push 0
push VariantClear
push 0
push 0x4655fa
push VariantClear
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40e784
mov eax, 0x4654f7
push eax
push 3
mov ebx, 0x190
call fcn.0045be60
add esp, 0x28
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40e7bc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40e7b8
imul eax, dword [ebx]
jmp 0x40e7ad
mov ecx, eax
test ecx, ecx
je 0x40e7db
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40e7d4
push ebx
push eax
call fcn.00457791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40e7c2
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x4654f7
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e7ff
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.004029e0
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 0x40eab6
mov ebx, dword [ebp - 0x28]
call fcn.00401161
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40e841
push 4
call fcn.00457797
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40e854
push 1
call fcn.00457797
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.Location:
push VariantClear
push 0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
test eax, eax
jne 0x40e88f
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x40e90e
mov ebx, dword [ebp - 0x28]
call fcn.00401161
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40e8cc
push 4
call fcn.00457797
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40e8df
push 1
call fcn.00457797
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x30]
call fcn.00405403
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e908
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.00401161
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40e92b
push 4
call fcn.00457797
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40e93e
push 1
call fcn.00457797
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push VariantClear
push 0
push str.Set_Cookie
push VariantClear
push 0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
test eax, eax
jne 0x40e979
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
je 0x40eaae
mov ebx, dword [ebp - 0x28]
call fcn.00401161
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40e9b6
push 4
call fcn.00457797
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40e9c9
push 1
call fcn.00457797
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov eax, 0x46574b
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x30]
call fcn.00405142
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ea1c
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ea2c
push ebx
call fcn.00457791
add esp, 4
push VariantClear
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x40ea3f
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x174
call fcn.0045bd20
add esp, 0x10
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40ea65
push ebx
call fcn.00457791
add esp, 4
push 0x465759
push dword [ebp - 0x48]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004011ec
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40ea92
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40eaa8
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x40e816
add esp, 0xc
push VariantClear
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40eace
mov eax, 0x4654f7
push eax
push 1
mov ebx, 0x130
call fcn.0045bb00
add esp, 0x10
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fsub qword [0x46575c]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401c8e
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40eb1b
mov eax, 0x4654f7
push eax
push 2
mov ebx, 0x134
call fcn.00459f40
add esp, 0x1c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40eb47
push ebx
call fcn.00457791
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 0x40eb81
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00405f34
mov ebx, eax
test ebx, ebx
je 0x40eb81
push ebx
call fcn.00457791
add esp, 4
push 0x4654f7
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.0040166b
add esp, 8
cmp eax, 0
jne 0x40ebd3
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x40ebba
push eax
mov ebx, eax
call fcn.00401181
inc eax
push eax
call fcn.0045778b
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 0x40ebcd
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x465764
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.HTTP_1.1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x54]
call fcn.00405142
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ec1e
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40ec2e
push ebx
call fcn.00457791
add esp, 4
push 0x465775
push dword [ebp - 0x40]
call fcn.0040166b
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ec5c
push ebx
call fcn.00457791
add esp, 4
cmp dword [ebp - 0x44], 0
je 0x40ed15
push dword [ebp + 8]
call fcn.00405d26
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
mov ebx, dword [ebp + 0x34]
push dword [ebx]
mov ecx, 2
call fcn.004011ec
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ec99
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ecad
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
mov eax, 0x4654f7
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ecc9
push ebx
call fcn.00457791
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push 1
push dword [ebp + 0x54]
push 1
push dword [ebp + 0x4c]
push 1
push dword [ebp + 0x44]
push 1
push dword [ebp + 0x3c]
push 1
push dword [ebp + 0x34]
push 1
push dword [ebp + 0x2c]
push 1
push dword [ebp + 0x24]
push 1
push dword [ebp + 0x1c]
push 1
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d979
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
jmp 0x40ee70
push VariantClear
push 0
push str.utf_8
push 1
mov ebx, 0x198
call fcn.00459590
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push VariantClear
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40ed4f
mov eax, 0x465508
push eax
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ed63
mov eax, 0x465508
push eax
push 3
mov ebx, 0x1ac
call fcn.0045cdd0
add esp, 0x28
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ed89
push ebx
call fcn.00457791
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40edad
cmp dword [ebp - 0x1c], 0x1f4
jge 0x40edad
mov eax, 1
jmp 0x40edaf
xor eax, eax
test eax, eax
jne 0x40ee0e
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push VariantClear
push 0
push str.utf_8
push VariantClear
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40edea
mov eax, 0x4654f7
push eax
push 4
mov ebx, 0x148
call fcn.004596f0
add esp, 0x34
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0xffffffff
jne 0x40ee0e
xor eax, eax
jmp 0x40ee13
mov eax, 1
test eax, eax
je 0x40ee3f
lea eax, [ebp - 0x24]
push eax
call fcn.0040ef0d
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ee3b
push ebx
call fcn.00457791
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push VariantClear
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ee52
mov eax, 0x465508
push eax
push 1
mov ebx, 0x168
call fcn.00459bb0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
jmp 0x40ee70
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ee81
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ee91
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40eea1
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40eeb1
push ebx
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40eecf
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40eecb
imul eax, dword [ebx]
jmp 0x40eec0
mov ecx, eax
test ecx, ecx
je 0x40eeee
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40eee7
push ebx
push eax
call fcn.00457791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40eed5
call fcn.00457791
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ef06
push ebx
call fcn.00457791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54