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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 8
call fcn.004050b2
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.004050b2
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x4781bc
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.004050b2
add esp, 4
mov dword [ebp - 0x10], eax
mov edi, eax
mov esi, 0x4781bc
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0x10
call fcn.004050b2
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.004050b2
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x4781bc
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, 6
call fcn.004050c4
cmp dword [ebp - 0x20], esp
je 0x402320
push 6
call fcn.004050be
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, 0x407090
call fcn.004050ca
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402365
mov eax, 0x4781bc
jmp 0x40320a
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40237a
mov eax, 0x4781c6
push eax
push 1
mov ebx, 0x405620
call fcn.004050ca
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 0x4023a6
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0x4781c6
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.00401216
add esp, 8
cmp eax, 0
jne 0x4023e5
mov eax, 0x478266
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4023df
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x44], 0xffffffff
je 0x402476
cmp dword [ebp + 0x44], 1
jge 0x402405
mov dword [ebp + 0x44], 0x3a98
jmp 0x402422
fild dword [ebp + 0x44]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x47826a]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.00401afe
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 0x478272
push 0x10030
push 0
push dword [ebp - 4]
push 6
mov ebx, 0x406170
call fcn.004050ca
add esp, 0x4c
push 0x4781c6
push dword [0x49b374]
call fcn.00401216
add esp, 8
cmp eax, 0
je 0x40253a
push 0xa0000004
push 0
push 0x49b374
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, 0x406170
call fcn.004050ca
add esp, 0x34
push 0x4781c6
push dword [0x49b378]
call fcn.00401216
add esp, 8
cmp eax, 0
je 0x40253a
push 0xa0000301
push 0
push 0x49b380
push 0xa0000004
push 0
push 0x49b37c
push 0xa0000004
push 0
push 0x49b378
push getpeername
push 0
push str.SetProxyCredentials
push 0x10030
push 0
push dword [ebp - 4]
push 5
mov ebx, 0x406170
call fcn.004050ca
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, 0x406170
call fcn.004050ca
add esp, 0x40
cmp dword [ebp + 0x3c], 0
je 0x4025cc
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, 0x406fe0
call fcn.004050ca
add esp, 0x34
push 0x4781c6
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401216
add esp, 8
cmp eax, 0
jne 0x402622
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.004011a1
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 0x40261c
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x4781c6
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401216
add esp, 8
cmp eax, 0
je 0x40267b
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, 0x406170
call fcn.004050ca
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x4781d3
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x4026ae
mov eax, 0x4781c6
push eax
push 4
mov ebx, 0x405490
call fcn.004050ca
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x402a10
push 0
push 0
push 0
push getpeername
push 0
push 0x4781d3
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x4026f5
mov eax, 0x4781c6
push eax
push 3
mov ebx, 0x405b70
call fcn.004050ca
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 0x40272d
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402729
imul eax, dword [ebx]
jmp 0x40271e
mov ecx, eax
test ecx, ecx
je 0x40274c
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402745
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402733
call fcn.004050b8
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004011fd
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 0x402a08
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
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 0x47836d
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4027c3
mov eax, 0x4781c6
push eax
push 4
mov ebx, 0x405490
call fcn.004050ca
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x402a00
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402801
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4027fd
imul eax, dword [ebx]
jmp 0x4027f2
mov ecx, eax
test ecx, ecx
je 0x402820
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402819
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402807
call fcn.004050b8
add esp, 4
mov eax, 0x4781bc
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0
push 0
push 0
push getpeername
push 0
push 0x47836d
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402870
mov eax, 0x4781c6
push eax
push 3
mov ebx, 0x405b70
call fcn.004050ca
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 0x4028a8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4028a4
imul eax, dword [ebx]
jmp 0x402899
mov ecx, eax
test ecx, ecx
je 0x4028c7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4028c0
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4028ae
call fcn.004050b8
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.004011fd
cmp dword [ebp - 0xc], eax
jle 0x4028f3
jmp 0x40297c
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x47836d
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004011a1
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 0x402971
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x4028da
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
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 0x4029c1
mov eax, 0x4781c6
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x4029d7
mov eax, 0x4781c6
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x406170
call fcn.004050ca
add esp, 0x34
pop eax
pop ebx
pop ecx
jmp 0x402769
add esp, 0xc
jmp 0x402c1a
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push 0x47836d
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402a43
mov eax, 0x4781c6
push eax
push 4
mov ebx, 0x405490
call fcn.004050ca
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jle 0x402c1a
push 0
push 0
push 0
push getpeername
push 0
push 0x47836d
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402a8a
mov eax, 0x4781c6
push eax
push 3
mov ebx, 0x405b70
call fcn.004050ca
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 0x402ac2
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402abe
imul eax, dword [ebx]
jmp 0x402ab3
mov ecx, eax
test ecx, ecx
je 0x402ae1
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402ada
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402ac8
call fcn.004050b8
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.004011fd
cmp dword [ebp - 0xc], eax
jle 0x402b0d
jmp 0x402b96
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
push dword [ebx]
push 0x47836d
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004011a1
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 0x402b8b
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
jmp 0x402af4
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 1
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 0x402bdb
mov eax, 0x4781c6
push eax
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402bf1
mov eax, 0x4781c6
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 4]
push 4
mov ebx, 0x406170
call fcn.004050ca
add esp, 0x34
mov eax, 0x4781bc
xor ecx, ecx
test eax, eax
je 0x402c28
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 0x402c3b
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x402c52
dec eax
test ecx, ecx
je 0x402c52
call fcn.0040218d
add esp, 0xc
test eax, eax
jne 0x402c94
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, 0x406170
call fcn.004050ca
add esp, 0x28
jmp 0x402cff
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 0x402caf
mov eax, 0x4781bc
push eax
push 0x10031
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x406b70
call fcn.004050ca
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, 0x406170
call fcn.004050ca
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, 0x406140
call fcn.004050ca
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, 0x4061c0
call fcn.004050ca
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, 0x4061a0
call fcn.004050ca
add esp, 0x10
call fcn.004050b8
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402d8c
push ebx
call fcn.004050b8
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, 0x406110
call fcn.004050ca
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 0x402dd7
push ebx
call fcn.004050b8
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 0x4781d3
push getpeername
push 0
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x402e04
mov eax, 0x4781c6
push eax
push 3
mov ebx, 0x405b70
call fcn.004050ca
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 0x402e3c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402e38
imul eax, dword [ebx]
jmp 0x402e2d
mov ecx, eax
test ecx, ecx
je 0x402e5b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402e54
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402e42
call fcn.004050b8
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x4781c6
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402e7f
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
call fcn.004011fd
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 0x403141
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
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 0x402ef0
mov eax, 0x4781c6
push eax
push 4
mov ebx, 0x405490
call fcn.004050ca
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x402fd7
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
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.00402239
push getpeername
push 0
push str.Location:
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x402f6c
mov eax, 0x4781c6
push eax
push 6
mov ebx, 0x405980
call fcn.004050ca
add esp, 0x4c
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402f95
mov eax, 0x4781c6
push eax
push 1
mov ebx, 0x405940
call fcn.004050ca
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402fbb
push ebx
call fcn.004050b8
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402fd1
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
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 0x403023
mov eax, 0x4781c6
push eax
push 4
mov ebx, 0x405490
call fcn.004050ca
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jle 0x403139
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0xc]
dec eax
pop ebx
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, 0x4783ac
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x20]
call fcn.00403337
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4030a7
push ebx
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4030b7
push ebx
call fcn.004050b8
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4030ca
mov eax, 0x4781c6
push eax
push 1
mov ebx, 0x405940
call fcn.004050ca
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4030f0
push ebx
call fcn.004050b8
add esp, 4
push 0x4783ba
push dword [ebp - 0x38]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004011a1
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40311d
push ebx
call fcn.004050b8
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x403133
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x402e96
add esp, 0xc
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00403725
mov ebx, eax
test ebx, ebx
je 0x40315e
push ebx
call fcn.004050b8
add esp, 4
push 0x4781c6
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401216
add esp, 8
cmp eax, 0
jne 0x4031b0
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
je 0x403197
push eax
mov ebx, eax
call fcn.00401136
inc eax
push eax
call fcn.004050b2
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 0x4031aa
push ebx
call fcn.004050b8
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push 0x10030
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x407080
call fcn.004050ca
add esp, 0x10
mov dword [ebp - 0x20], esp
mov eax, 7
call fcn.004050c4
cmp dword [ebp - 0x20], esp
je 0x4031eb
push 6
call fcn.004050be
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x403205
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004050b2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40320a
push eax
mov ebx, dword [ebp - 4]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x407080
call fcn.004050ca
add esp, 0x10
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40324c
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403248
imul eax, dword [ebx]
jmp 0x40323d
mov ecx, eax
test ecx, ecx
je 0x40326b
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403264
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403252
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403291
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40328d
imul eax, dword [ebx]
jmp 0x403282
mov ecx, eax
test ecx, ecx
je 0x4032b0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4032a9
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403297
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x4061a0
call fcn.004050ca
add esp, 0x10
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4032eb
push ebx
call fcn.004050b8
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403309
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403305
imul eax, dword [ebx]
jmp 0x4032fa
mov ecx, eax
test ecx, ecx
je 0x403328
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403321
push ebx
push eax
call fcn.004050b8
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40330f
call fcn.004050b8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54