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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
push 8
call fcn.0040ddfa
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 8
call fcn.0040ddfa
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4b839b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 0x10
call fcn.0040ddfa
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.0040ddfa
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x4b839b
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
call fcn.004043f4
cmp dword [ebp + 0xc], 0
jne 0x40b86d
mov eax, 0x4b84cd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b864
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b8e3
cmp dword [ebp + 0xc], 1
jne 0x40b896
mov eax, 0x4b84d1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b88d
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b8e3
cmp dword [ebp + 0xc], 2
jne 0x40b8bf
mov eax, str.HEAD
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b8b6
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40b8e3
cmp dword [ebp + 0xc], 3
jne 0x40b8e3
mov eax, 0x4b84db
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b8df
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], 0
push 0
push 0
push 0
push getpeername
push 0
push 0x4b851c
push 0x10030
push 0
push dword [ebp - 8]
push 3
mov ebx, 0x4116c0
call fcn.0040de00
add esp, 0x28
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40b92f
mov eax, 0x4b839b
jmp 0x40c75b
cmp dword [ebp + 0x5c], 0xffffffff
je 0x40b9c0
cmp dword [ebp + 0x5c], 1
jge 0x40b94f
mov dword [ebp + 0x5c], 0x3a98
jmp 0x40b96c
fild dword [ebp + 0x5c]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [0x4b8537]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.004021a3
mov dword [ebp + 0x5c], eax
push 0xa0000301
push 0
lea eax, [ebp + 0x5c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x5c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x5c]
push eax
push 0xa0000301
push 0
lea eax, [ebp + 0x5c]
push eax
push getpeername
push 0
push 0x4b853f
push 0x10030
push 0
push dword [ebp - 8]
push 6
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x4c
push 0x4b8314
mov ebx, dword [ebp + 0x54]
push dword [ebx]
call fcn.004013d1
add esp, 8
cmp eax, 0
je 0x40ba19
push 0xa0000004
push 0
push dword [ebp + 0x54]
push 0x80000301
push 0
push 2
push getpeername
push 0
push str.SetProxy
push 0x10030
push 0
push dword [ebp - 8]
push 4
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x34
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0xa0000004
push 0
push dword [ebp + 8]
push 0xa0000004
push 0
lea eax, [ebp - 4]
push eax
push getpeername
push 0
push str.Open
push 0x10030
push 0
push dword [ebp - 8]
push 5
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x40
cmp dword [ebp + 0x44], 0
je 0x40baac
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 - 8]
push 4
mov ebx, 0x4115e0
call fcn.0040de00
add esp, 0x34
push 0x4b8314
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.004013d1
add esp, 8
cmp eax, 0
jne 0x40bae5
mov eax, 0x4b8989
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40badf
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.Accept:
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40bb18
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40bb6e
push str._r_nAccept:__
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040106f
add esp, 8
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 0x40bb68
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.Accept_Language:
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40bba1
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40bbf7
push str._r_nAccept_Language:_zh_cn
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040106f
add esp, 8
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 0x40bbf1
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.User_Agent:
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40bc2a
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40bc80
push str._r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_50.0.2661.102_Safari_537.36
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040106f
add esp, 8
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 0x40bc7a
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0
push 0
push 0
push getpeername
push 0
push str.Content_Type:
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40bcb3
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40bd09
push str._r_nContent_Type:_application_x_www_form_urlencoded
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
mov ecx, 2
call fcn.0040106f
add esp, 8
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 0x40bd03
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x4b8314
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.004013d1
add esp, 8
cmp eax, 0
je 0x40bd62
push 0xa0000004
push 0
push dword [ebp + 0x1c]
push getpeername
push 0
push 0x4b8687
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 8]
push 4
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x34
push 0
push 0
push 0
push getpeername
push 0
push 0x4b8323
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40bd89
mov eax, 0x4b8314
push eax
push 3
mov ebx, 0x40ed20
call fcn.0040de00
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bdc1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bdbd
imul eax, dword [ebx]
jmp 0x40bdb2
mov ecx, eax
test ecx, ecx
je 0x40bde0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bdd9
push ebx
push eax
call fcn.0040ddee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bdc7
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401476
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40bf98
mov ebx, dword [ebp - 0xc]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40be32
push 0xaf1
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40be4f
push 0xaf1
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push 0x4b8314
mov ebx, dword [ebp - 0x20]
push dword [ebx]
call fcn.004013d1
add esp, 8
cmp eax, 0
je 0x40bf90
mov ebx, dword [ebp - 0xc]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40be99
push 0xb46
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40beb6
push 0xb46
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x20]
call fcn.0040c853
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40bef0
push 0xb67
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40bf0d
push 0xb67
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
call fcn.0040c96b
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40bf33
mov eax, 0x4b8314
push eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40bf47
mov eax, 0x4b8314
push eax
push getpeername
push 0
push str.SetRequestHeader
push 0x10030
push 0
push dword [ebp - 8]
push 4
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bf80
push ebx
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40bf90
push ebx
call fcn.0040ddee
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40bdfd
add esp, 0xc
mov eax, 0x4b839b
xor ecx, ecx
test eax, eax
je 0x40bfa9
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
xor ebx, ebx
test eax, eax
je 0x40bfbc
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40bfd3
dec eax
test ecx, ecx
je 0x40bfd3
call fcn.00402b41
add esp, 0xc
test eax, eax
jne 0x40c015
push 0xa0000004
push 0
push dword [ebp + 0x14]
push getpeername
push 0
push str.Send
push 0x10030
push 0
push dword [ebp - 8]
push 3
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x28
jmp 0x40c080
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x4c]
mov eax, dword [ebx]
test eax, eax
jne 0x40c030
mov eax, 0x4b839b
push eax
push 0x10031
push 0
push dword [ebp - 0x14]
push 3
mov ebx, 0x4110c0
call fcn.0040de00
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 - 8]
push 3
mov ebx, 0x4105d0
call fcn.0040de00
add esp, 0x28
push 0
push 0
push 0
push getpeername
push 0
push str.ResponseBody
push 0x10030
push 0
push dword [ebp - 8]
push 3
mov ebx, 0x4105a0
call fcn.0040de00
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, 0x410680
call fcn.0040de00
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, 0x410660
call fcn.0040de00
add esp, 0x10
call fcn.0040ddee
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c10d
push ebx
call fcn.0040ddee
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 - 8]
push 3
mov ebx, 0x410540
call fcn.0040de00
add esp, 0x28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c158
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.0040146e
push getpeername
push 0
push str.Set_Cookie
push getpeername
push 0
push str.Set_Cookie
push getpeername
push 0
mov ebx, dword [ebp + 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x40c1a1
mov eax, 0x4b8314
push eax
push 6
mov ebx, 0x40eb30
call fcn.0040de00
add esp, 0x4c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c1cd
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push 0
push 0
push 0
push getpeername
push 0
push str.Status
push 0x10030
push 0
push dword [ebp - 8]
push 3
mov ebx, 0x410570
call fcn.0040de00
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
fld qword [ebp - 0x2c]
call fcn.004021a3
mov ebx, dword [ebp + 0x3c]
mov dword [ebx], eax
push 0
push 0
push 0
push getpeername
push 0
push 0x4b8323
push getpeername
push 0
mov ebx, dword [ebp + 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x40c23b
mov eax, 0x4b8314
push eax
push 3
mov ebx, 0x40ed20
call fcn.0040de00
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 0x40c273
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c26f
imul eax, dword [ebx]
jmp 0x40c264
mov ecx, eax
test ecx, ecx
je 0x40c292
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c28b
push ebx
push eax
call fcn.0040ddee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c279
call fcn.0040ddee
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, 0x4b8314
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c2b6
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x1c]
call fcn.00401476
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40c66a
mov ebx, dword [ebp - 0x1c]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40c302
push 0xe88
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c31f
push 0xe88
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
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 0x40c35a
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x40c662
mov ebx, dword [ebp - 0x1c]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40c3a1
push 0xeed
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c3be
push 0xeed
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
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 0x4b86ec
push getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x40c3f9
mov eax, 0x4b8314
push eax
push 4
mov ebx, 0x40e620
call fcn.0040de00
add esp, 0x34
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x40c547
mov ebx, dword [ebp - 0x1c]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40c440
push 0xf68
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c45d
push 0xf68
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
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, 0x4b86ec
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.004021ca
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40c4b0
push ebx
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40c4c0
push ebx
call fcn.0040ddee
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40c4d3
mov eax, 0x4b8314
push eax
push 1
mov ebx, 0x40eaf0
call fcn.0040de00
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40c4f9
push ebx
call fcn.0040ddee
add esp, 4
push 0x4b86fa
push dword [ebp - 0x38]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040106f
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40c526
push ebx
call fcn.0040ddee
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c53c
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
jmp 0x40c662
mov ebx, dword [ebp - 0x1c]
call fcn.0040148f
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x40c56e
push 0xff2
push 0x401619f
push 4
call fcn.0040de06
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c58b
push 0xff2
push 0x401619f
push 1
call fcn.0040de06
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 9
call fcn.0040146e
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 0x40c5ca
mov eax, 0x4b8314
push eax
push 6
mov ebx, 0x40eb30
call fcn.0040de00
add esp, 0x4c
mov dword [ebp - 0x24], eax
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40c5f3
mov eax, 0x4b8314
push eax
push 1
mov ebx, 0x40eaf0
call fcn.0040de00
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c619
push ebx
call fcn.0040ddee
add esp, 4
push 0x4b86fa
push dword [ebp - 0x28]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.0040106f
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40c646
push ebx
call fcn.0040ddee
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c65c
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x40c2cd
add esp, 0xc
push getpeername
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40c682
mov eax, 0x4b8314
push eax
push 1
mov ebx, 0x40e2d0
call fcn.0040de00
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x4b86fd]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004021a3
push 0x80000301
push 0
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40c6cf
mov eax, 0x4b8314
push eax
push 2
mov ebx, 0x40e330
call fcn.0040de00
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c6fb
push ebx
call fcn.0040ddee
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.0040cab1
mov ebx, eax
test ebx, ebx
je 0x40c71b
push ebx
call fcn.0040ddee
add esp, 4
push 0x10030
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x4116b0
call fcn.0040de00
add esp, 0x10
call fcn.004078a0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c756
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040ddfa
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c75b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c76c
push ebx
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x4116b0
call fcn.0040de00
add esp, 0x10
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c7ad
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c7a9
imul eax, dword [ebx]
jmp 0x40c79e
mov ecx, eax
test ecx, ecx
je 0x40c7cc
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c7c5
push ebx
push eax
call fcn.0040ddee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c7b3
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push 0x10031
push 0
push ebx
push 1
mov ebx, 0x410660
call fcn.0040de00
add esp, 0x10
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40c807
push ebx
call fcn.0040ddee
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c825
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c821
imul eax, dword [ebx]
jmp 0x40c816
mov ecx, eax
test ecx, ecx
je 0x40c844
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c83d
push ebx
push eax
call fcn.0040ddee
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c82b
call fcn.0040ddee
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x5c