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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 8
call fcn.00405731
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x51f7ec
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 1
mov eax, 0
sete al
test eax, eax
je 0x40220d
mov eax, str.POST
jmp 0x402212
mov eax, 0x53522c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402229
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 4], eax
push closesocket
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 0x402260
mov eax, 0x51f7f4
push eax
push 4
mov ebx, 0x405e20
call fcn.0040573d
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40236d
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x53523c
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, str.User_Agent:
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x2c]
call fcn.00403202
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4022cb
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4022db
push ebx
call fcn.0040572b
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4022ee
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x4062e0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402314
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402328
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x51f7f4
push dword [ebp - 8]
call fcn.00401d59
add esp, 8
cmp eax, 0
jne 0x402368
push dword [ebp + 0x2c]
call fcn.004034c3
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402364
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x402387
mov eax, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402383
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x402433
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 1
push dword [ebp - 8]
mov eax, 1
call fcn.00405743
cmp dword [ebp - 0x34], esp
je 0x402405
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402418
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402428
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x4024d3
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.00401b72
add esp, 8
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402460
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x406a60
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402486
push ebx
call fcn.0040572b
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x51f7f4
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
mov eax, 1
call fcn.00405743
cmp dword [ebp - 0x34], esp
je 0x4024ba
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4024cd
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402509
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x4024ff
push 6
call fcn.00405737
add esp, 4
mov eax, 0x51f7ec
jmp 0x403146
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 8]
call fcn.00403609
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.00403bb2
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], esp
push 0
push 0
push 3
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0xc]
mov eax, 3
call fcn.00405743
cmp dword [ebp - 0x44], esp
je 0x4025b6
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4025c9
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4025d9
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4025e9
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402647
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x40261b
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x40263d
push 6
call fcn.00405737
add esp, 4
mov eax, 0x51f7ec
jmp 0x403146
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push closesocket
push 2
mov ebx, 0x405a50
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 0x80000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x405a50
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x4026d4
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x405a50
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push 5
push getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4026f5
mov eax, 0x51f7f4
push eax
push 2
mov ebx, 0x405ba0
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40271e
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x405fc0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402744
push ebx
call fcn.0040572b
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.00401d59
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402772
push ebx
call fcn.0040572b
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x4027ac
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x405a50
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x4027d7
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x405a50
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.00403de6
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x405c90
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esp
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push str.HTTP_1.1
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x10]
mov eax, 4
call fcn.00405743
cmp dword [ebp - 0x38], esp
je 0x40285f
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402872
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402882
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402892
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402912
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x4028c4
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x4028e6
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402908
push 6
call fcn.00405737
add esp, 4
mov eax, 0x51f7ec
jmp 0x403146
push 0x51f7f4
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.00401d59
add esp, 8
cmp eax, 0
jne 0x402968
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.00401b72
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402962
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x51f7f4
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.00401d59
add esp, 8
cmp eax, 0
je 0x4029be
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.00401b72
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x2c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4029b8
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x402a2c
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x4029dd
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x405ae0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0x51f7f4
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 5
call fcn.00405743
cmp dword [ebp - 0x30], esp
je 0x402a27
push 6
call fcn.00405737
add esp, 4
jmp 0x402b46
mov eax, 0x51f7ec
xor ecx, ecx
test eax, eax
je 0x402a3a
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 0x402a4d
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x402a64
dec eax
test ecx, ecx
je 0x402a64
call fcn.00402050
add esp, 0xc
test eax, eax
jne 0x402ab6
push getpeername
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x402a84
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x4066a0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x44]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402ab0
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x44]
mov dword [ebx], eax
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402acb
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x405ae0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
jne 0x402af6
mov eax, 0x51f7ec
push eax
push 1
mov ebx, 0x405b00
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
mov ebx, dword [ebp + 0x44]
mov eax, dword [ebx]
test eax, eax
je 0x402b1e
add eax, 8
push eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 6
call fcn.00405743
cmp dword [ebp - 0x34], esp
je 0x402b46
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x406960
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402b82
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x1c]
push eax
push 0x400
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402b9c
add eax, 8
push eax
push dword [ebp - 0x18]
mov eax, 7
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402bbc
push 6
call fcn.00405737
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x402bd0
jmp 0x402c46
push 0x80000301
push 0
push dword [ebp - 0x1c]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x402bed
mov eax, 0x51f7ec
push eax
push 2
mov ebx, 0x406920
call fcn.0040573d
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.004020fc
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402c29
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402c3d
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x402b4d
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x406750
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp + 0x54]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402c7d
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x54]
mov dword [ebx], eax
mov dword [ebp - 0x2c], esp
push 0
mov eax, 0x1388
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x54]
push dword [ebx]
push 0x16
push dword [ebp - 0x18]
mov eax, 8
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402cc0
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402ce2
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402d04
push 6
call fcn.00405737
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 2
call fcn.00405743
cmp dword [ebp - 0x2c], esp
je 0x402d26
push 6
call fcn.00405737
add esp, 4
push 0
push 0
push 0
push getpeername
push 0
push 0x53523c
push getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x402d4d
mov eax, 0x51f7f4
push eax
push 3
mov ebx, 0x406510
call fcn.0040573d
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x402d85
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x402d81
imul eax, dword [ebx]
jmp 0x402d76
mov ecx, eax
test ecx, ecx
je 0x402da4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x402d9d
push ebx
push eax
call fcn.0040572b
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x402d8b
call fcn.0040572b
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x51f7f4
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402dc8
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.00402153
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 0x4030b8
mov ebx, dword [ebp - 0x28]
call fcn.0040216c
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402e0a
push 4
call fcn.00405737
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402e1d
push 1
call fcn.00405737
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push closesocket
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 - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402e58
mov eax, 0x51f7f4
push eax
push 4
mov ebx, 0x405e20
call fcn.0040573d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x402f10
mov ebx, dword [ebp - 0x28]
call fcn.0040216c
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402e95
push 4
call fcn.00405737
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402ea8
push 1
call fcn.00405737
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.004034c3
mov dword [ebp - 0x30], eax
push getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x402ece
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x4062e0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402ef4
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x402f0a
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.0040216c
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402f2d
push 4
call fcn.00405737
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402f40
push 1
call fcn.00405737
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push closesocket
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 - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x402f7b
mov eax, 0x51f7f4
push eax
push 4
mov ebx, 0x405e20
call fcn.0040573d
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4030b0
mov ebx, dword [ebp - 0x28]
call fcn.0040216c
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x402fb8
push 4
call fcn.00405737
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x402fcb
push 1
call fcn.00405737
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov eax, 0x535362
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, str.Set_Cookie:
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call fcn.00403202
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40301e
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40302e
push ebx
call fcn.0040572b
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x403041
mov eax, 0x51f7f4
push eax
push 1
mov ebx, 0x4062e0
call fcn.0040573d
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x403067
push ebx
call fcn.0040572b
add esp, 4
push 0x535370
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.00401b72
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x403094
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4030aa
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x402ddf
add esp, 0xc
push 0x51f7f4
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.00401d59
add esp, 8
cmp eax, 0
jne 0x40310d
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x4030f4
push eax
mov ebx, eax
call fcn.00401b07
inc eax
push eax
call fcn.00405731
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 0x403107
push ebx
call fcn.0040572b
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.00403fd5
mov ebx, eax
test ebx, ebx
je 0x403127
push ebx
call fcn.0040572b
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x403141
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00405731
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403146
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403157
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403167
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403177
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x403187
push ebx
call fcn.0040572b
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4031a5
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4031a1
imul eax, dword [ebx]
jmp 0x403196
mov ecx, eax
test ecx, ecx
je 0x4031c4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4031bd
push ebx
push eax
call fcn.0040572b
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4031ab
call fcn.0040572b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54