Function at 0x40166b
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 8
call fcn.004170c0
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.004170c0
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4a302f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
push 8
call fcn.004170c0
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x4a302f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0x10
call fcn.004170c0
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov eax, 3
mov dword [ebx], eax
mov dword [ebp - 0x18], 0
push 8
call fcn.004170c0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x4a302f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x20], esp
push 0
mov eax, 1
call fcn.004170d8
cmp dword [ebp - 0x20], esp
je 0x40174a
push 6
call fcn.004170d2
add esp, 4
push 0
push 0
push 0
push getpeername
push 0
push str.WinHttp.WinHttpRequest.5.1
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x41b090
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40178f
mov eax, 0x4a302f
jmp 0x40284c
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4017a4
mov eax, 0x4a3052
push eax
push 1
mov ebx, 0x417c50
call fcn.004170cc
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4017d0
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x4a3052
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401466
add esp, 8
cmp eax, 0
jne 0x40180f
mov eax, 0x4a3053
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401809
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 0xffffffff
je 0x4018a0
cmp dword [ebp + 0x44], 1
jge 0x40182f
mov dword [ebp + 0x44], 0x3a98
jmp 0x40184c
fild dword [ebp + 0x44]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4a3057]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401503
mov dword [ebp + 0x44], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x44]
push eax
push getpeername
push 0
push 0x4a305f
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x4c
push 0x4a3052
push dword [0x4ccf48]
call fcn.00401466
add esp, 8
cmp eax, 0
je 0x401964
push 0xa0000004
push 0
push 0x4ccf48
push 0x80000301
push 0
push 2
push getpeername
push 0
push str.SetProxy
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x34
push 0x4a3052
push dword [0x4ccf4c]
call fcn.00401466
add esp, 8
cmp eax, 0
je 0x401964
push 0xa0000301
push 0
push 0x4ccf54
push 0xa0000004
push 0
push 0x4ccf50
push 0xa0000004
push 0
push 0x4ccf4c
push getpeername
push 0
push str.SetProxyCredentials
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x40
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push 0xa0000004
push 0
push dword [ebp + 0xc]
push getpeername
push 0
push str.Open
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x40
cmp dword [ebp + 0x3c], 0
je 0x4019f6
push 0x80000301
push 0
push 0
push 0x80000301
push 0
push 6
push getpeername
push 0
push str.Option
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x41afe0
call fcn.004170cc
add esp, 0x34
push 0x4a3052
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401466
add esp, 8
cmp eax, 0
jne 0x401a4c
push str._r_nAccept:___r_nAccept_Language:_zh_cn_r_nUser_Agent:_Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0__r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.Referer:
mov ecx, 3
call fcn.0040152a
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401a46
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
push dword [ebp + 8]
call fcn.00402979
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402fdb
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401a93
push ebx
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401aa3
push ebx
call fcn.004170c6
add esp, 4
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2c]
push eax
call fcn.004034ef
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401ac2
push ebx
call fcn.004170c6
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401ad8
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], eax
push 0x4a3052
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401466
add esp, 8
cmp eax, 0
je 0x401b37
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push getpeername
push 0
push str.Cookie
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315a
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401b6a
mov eax, 0x4a3052
push eax
push 4
mov ebx, 0x417ad0
call fcn.004170cc
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x401f61
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315a
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401bb1
mov eax, 0x4a3052
push eax
push 3
mov ebx, 0x4182a0
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401be9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401be5
imul eax, dword [ebx]
jmp 0x401bda
mov ecx, eax
test ecx, ecx
je 0x401c08
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401c01
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401bef
call fcn.004170c6
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.00401586
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x401f59
mov ebx, dword [ebp - 8]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401c50
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401c63
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315d
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x401c9e
mov eax, 0x4a3052
push eax
push 4
mov ebx, 0x417ad0
call fcn.004170cc
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x401f51
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401cdc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401cd8
imul eax, dword [ebx]
jmp 0x401ccd
mov ecx, eax
test ecx, ecx
je 0x401cfb
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401cf4
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401ce2
call fcn.004170c6
add esp, 4
mov eax, 0x4a302f
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401d28
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401d3b
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315d
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x401d6a
mov eax, 0x4a3052
push eax
push 3
mov ebx, 0x4182a0
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401da2
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401d9e
imul eax, dword [ebx]
jmp 0x401d93
mov ecx, eax
test ecx, ecx
je 0x401dc1
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401dba
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401da8
call fcn.004170c6
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 2
inc dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
call fcn.00401586
cmp dword [ebp - 0xc], eax
jle 0x401ded
jmp 0x401eb1
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x401e0b
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x401e31
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x401e56
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x401e69
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x4a315d
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040152a
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401ea6
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x401dd4
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 0
cmp eax, ecx
jl 0x401ecf
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x401ef5
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x401f12
mov eax, 0x4a3052
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x401f28
mov eax, 0x4a3052
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x401c25
add esp, 0xc
jmp 0x4021c2
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315d
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401f94
mov eax, 0x4a3052
push eax
push 4
mov ebx, 0x417ad0
call fcn.004170cc
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x4021c2
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315d
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x401fdb
mov eax, 0x4a3052
push eax
push 3
mov ebx, 0x4182a0
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402013
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40200f
imul eax, dword [ebx]
jmp 0x402004
mov ecx, eax
test ecx, ecx
je 0x402032
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40202b
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402019
call fcn.004170c6
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 2
inc dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
call fcn.00401586
cmp dword [ebp - 0xc], eax
jle 0x40205e
jmp 0x402122
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x40207c
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x4020a2
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4020c7
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4020da
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x4a315d
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040152a
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402117
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x402045
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 0
cmp eax, ecx
jl 0x402140
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
call fcn.0040159f
mov eax, 1
cmp eax, ecx
jl 0x402166
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push getpeername
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x402183
mov eax, 0x4a3052
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402199
mov eax, 0x4a3052
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x34
mov eax, 0x4a302f
xor ecx, ecx
test eax, eax
je 0x4021d0
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x4021e3
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x4021fa
dec eax
test ecx, ecx
je 0x4021fa
call fcn.004015bf
add esp, 0xc
test eax, eax
jne 0x40223c
push 0xa0000004
push 0
push dword [ebp + 0x14]
push getpeername
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x28
jmp 0x4022a7
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x402257
mov eax, 0x4a302f
push eax
push 0x10031
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x41ab40
call fcn.004170cc
add esp, 0x28
push 0x20010031
push 0
lea eax, [ebp - 0x14]
push eax
push getpeername
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x41a140
call fcn.004170cc
add esp, 0x28
push 0
push 0
push 0
push getpeername
push 0
push str.ResponseBody
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x41a110
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0x10031
push 0
push dword [ebp - 0x20]
push 2
mov ebx, 0x41a190
call fcn.004170cc
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x41a170
call fcn.004170cc
add esp, 0x10
call fcn.004170c6
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402334
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push getpeername
push 0
push str.GetallResponseHeaders
push 0x10030
push 0
push dword [ebp - 4]
push 3
mov ebx, 0x41a0e0
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x4c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40237f
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x4c]
mov dword [ebx], eax
push 0
push 0
push 0
push getpeername
push 0
push 0x4a315a
push getpeername
push 0
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x4023ac
mov eax, 0x4a3052
push eax
push 3
mov ebx, 0x4182a0
call fcn.004170cc
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4023e4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4023e0
imul eax, dword [ebx]
jmp 0x4023d5
mov ecx, eax
test ecx, ecx
je 0x402403
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4023fc
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4023ea
call fcn.004170c6
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x4a3052
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402427
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
call fcn.00401586
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x402765
mov ebx, dword [ebp - 0x1c]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402469
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40247c
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push str.Location:
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4024b7
mov eax, 0x4a3052
push eax
push 4
mov ebx, 0x417ad0
call fcn.004170cc
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x4025bd
mov ebx, dword [ebp - 0x1c]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4024f4
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402507
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 1
mov ebx, 6
call fcn.0040108a
push getpeername
push 0
push str.Location:
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402552
mov eax, 0x4a3052
push eax
push 6
mov ebx, 0x4180b0
call fcn.004170cc
add esp, 0x4c
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40257b
mov eax, 0x4a3052
push eax
push 1
mov ebx, 0x417fe0
call fcn.004170cc
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4025a1
push ebx
call fcn.004170c6
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4025b7
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x4025da
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4025ed
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push str.Set_Cookie
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402628
mov eax, 0x4a3052
push eax
push 4
mov ebx, 0x417ad0
call fcn.004170cc
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x40275d
mov ebx, dword [ebp - 0x1c]
call fcn.0040159f
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x402665
push 4
call fcn.004170d2
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402678
push 1
call fcn.004170d2
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov eax, 0x4a319c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x4a319e
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call fcn.0040428a
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4026cb
push ebx
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4026db
push ebx
call fcn.004170c6
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4026ee
mov eax, 0x4a3052
push eax
push 1
mov ebx, 0x417fe0
call fcn.004170cc
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402714
push ebx
call fcn.004170c6
add esp, 4
push 0x4a31aa
push dword [ebp - 0x38]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040152a
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x402741
push ebx
call fcn.004170c6
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402757
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x40243e
add esp, 0xc
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.004034ef
mov ebx, eax
test ebx, ebx
je 0x402782
push ebx
call fcn.004170c6
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 1
push dword [ebp + 8]
call fcn.00402979
mov dword [ebp - 0x24], eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x24]
push eax
call fcn.00404678
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4027bc
push ebx
call fcn.004170c6
add esp, 4
push 0x4a3052
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401466
add esp, 8
cmp eax, 0
jne 0x40280e
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
je 0x4027f5
push eax
mov ebx, eax
call fcn.0040118c
inc eax
push eax
call fcn.004170c0
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 0x402808
push ebx
call fcn.004170c6
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov dword [ebp - 0x20], esp
mov eax, 2
call fcn.004170d8
cmp dword [ebp - 0x20], esp
je 0x40282d
push 6
call fcn.004170d2
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x402847
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004170c0
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40284c
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41b080
call fcn.004170cc
add esp, 0x10
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40288e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40288a
imul eax, dword [ebx]
jmp 0x40287f
mov ecx, eax
test ecx, ecx
je 0x4028ad
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4028a6
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402894
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4028d3
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4028cf
imul eax, dword [ebx]
jmp 0x4028c4
mov ecx, eax
test ecx, ecx
je 0x4028f2
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4028eb
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4028d9
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x41a170
call fcn.004170cc
add esp, 0x10
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40292d
push ebx
call fcn.004170c6
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40294b
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402947
imul eax, dword [ebx]
jmp 0x40293c
mov ecx, eax
test ecx, ecx
je 0x40296a
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402963
push ebx
push eax
call fcn.004170c6
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402951
call fcn.004170c6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54