Function at 0x40ac6e
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.00413dd4
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, eax
mov esi, 0x48c051
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 0x40acef
mov eax, 0x649723
jmp 0x40acf4
mov eax, 0x649728
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ad0b
push ebx
call fcn.00413dce
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 0x40ad42
mov eax, 0x48c050
push eax
push 4
mov ebx, 0x414900
call fcn.00413dda
add esp, 0x34
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40ae4f
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov eax, 0x48c059
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.0040bc84
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40adad
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40adbd
push ebx
call fcn.00413dce
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x40add0
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x414f20
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40adf6
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ae0a
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x48c050
push dword [ebp - 8]
call fcn.004012f4
add esp, 8
cmp eax, 0
jne 0x40ae4a
push dword [ebp + 0x2c]
call fcn.0040bf45
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ae46
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x40ae69
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 0x40ae65
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov dword [ebp - 8], eax
cmp dword [ebp + 0x50], 0
jne 0x40af15
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
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, 0xb
call fcn.00413dfe
cmp dword [ebp - 0x34], esp
je 0x40aee7
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40aefa
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40af0a
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
jmp 0x40afb5
mov ebx, dword [ebp + 0x4c]
push dword [ebx]
push str.http
mov ecx, 2
call fcn.004013fc
add esp, 8
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40af42
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x4157f0
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40af68
push ebx
call fcn.00413dce
add esp, 4
mov dword [ebp - 0x34], esp
push 0
push 0x48c050
push dword [ebp - 0x30]
push 3
push dword [ebp - 8]
mov eax, 0xb
call fcn.00413dfe
cmp dword [ebp - 0x34], esp
je 0x40af9c
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40afaf
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40afeb
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40afe1
push 6
call fcn.00413df8
add esp, 4
mov eax, 0x48c051
jmp 0x40bbef
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.0040c08b
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.0040c634
mov dword [ebp - 0x38], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x3c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
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, 0xd
call fcn.00413dfe
cmp dword [ebp - 0x44], esp
je 0x40b098
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b0ab
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40b0bb
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40b0cb
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40b129
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b0fd
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b11f
push 6
call fcn.00413df8
add esp, 4
mov eax, 0x48c051
jmp 0x40bbef
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push closesocket
push 2
mov ebx, 0x414170
call fcn.00413dda
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, 0x414170
call fcn.00413dda
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x3c], 0
je 0x40b1b6
push 0x80000301
push 0
push 0x200000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x414170
call fcn.00413dda
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 0x40b1d7
mov eax, 0x48c050
push eax
push 2
mov ebx, 0x414680
call fcn.00413dda
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x40b200
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x414aa0
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b226
push ebx
call fcn.00413dce
add esp, 4
push str.https
push dword [ebp - 0x30]
call fcn.004012f4
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 0x40b254
push ebx
call fcn.00413dce
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x40b28e
push 0x80000301
push 0
push 0x800000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x414170
call fcn.00413dda
add esp, 0x1c
mov dword [ebp - 0x14], eax
jmp 0x40b2b9
push 0x80000301
push 0
push 0x4000
push 0x80000301
push 0
push dword [ebp - 0x14]
push 2
mov ebx, 0x414170
call fcn.00413dda
add esp, 0x1c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.0040c868
mov dword [ebp - 0x2c], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x30], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x414770
call fcn.00413dda
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, 0xe
call fcn.00413dfe
cmp dword [ebp - 0x38], esp
je 0x40b341
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b354
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40b364
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40b374
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40b3f4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b3a6
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b3c8
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b3ea
push 6
call fcn.00413df8
add esp, 4
mov eax, 0x48c051
jmp 0x40bbef
push 0x48c050
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
call fcn.004012f4
add esp, 8
cmp eax, 0
jne 0x40b44a
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.004013fc
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 0x40b444
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
push 0x48c050
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.004012f4
add esp, 8
cmp eax, 0
je 0x40b4a0
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.004013fc
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 0x40b49a
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x2c]
mov dword [ebx], eax
cmp dword [ebp + 0xc], 0
jne 0x40b50e
push getpeername
push 0
mov ebx, dword [ebp + 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x40b4bf
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x414340
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push 0
push 0x48c050
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 0xf
call fcn.00413dfe
cmp dword [ebp - 0x30], esp
je 0x40b509
push 6
call fcn.00413df8
add esp, 4
jmp 0x40b628
mov eax, 0x48c051
xor ecx, ecx
test eax, eax
je 0x40b51c
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 0x40b52f
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40b546
dec eax
test ecx, ecx
je 0x40b546
call fcn.0040ab6b
add esp, 0xc
test eax, eax
jne 0x40b598
push getpeername
push 0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
jne 0x40b566
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x415390
call fcn.00413dda
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 0x40b592
push ebx
call fcn.00413dce
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 0x40b5ad
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x414340
call fcn.00413dda
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 0x40b5d8
mov eax, 0x48c051
push eax
push 1
mov ebx, 0x414360
call fcn.00413dda
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 0x40b600
add eax, 8
push eax
push dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x2c]
push dword [ebx]
push dword [ebp - 0x18]
mov eax, 0x10
call fcn.00413dfe
cmp dword [ebp - 0x34], esp
je 0x40b628
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x1c], 0
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x4156f0
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b664
push ebx
call fcn.00413dce
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 0x40b67e
add eax, 8
push eax
push dword [ebp - 0x18]
mov eax, 0x11
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b69e
push 6
call fcn.00413df8
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x40b6b2
jmp 0x40b728
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 0x40b6cf
mov eax, 0x48c051
push eax
push 2
mov ebx, 0x415650
call fcn.00413dda
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.0040ac17
add esp, 8
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40b70b
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40b71f
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
jmp 0x40b62f
push 0x80000301
push 0
push 0x1388
push 1
mov ebx, 0x415440
call fcn.00413dda
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 0x40b75f
push ebx
call fcn.00413dce
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, 0x12
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b7a2
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x18]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b7c4
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x10]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b7e6
push 6
call fcn.00413df8
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0xc]
mov eax, 0xc
call fcn.00413dfe
cmp dword [ebp - 0x2c], esp
je 0x40b808
push 6
call fcn.00413df8
add esp, 4
push 0
push 0
push 0
push getpeername
push 0
push 0x48c059
push getpeername
push 0
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
jne 0x40b82f
mov eax, 0x48c050
push eax
push 3
mov ebx, 0x415200
call fcn.00413dda
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 0x40b867
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40b863
imul eax, dword [ebx]
jmp 0x40b858
mov ecx, eax
test ecx, ecx
je 0x40b886
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40b87f
push ebx
push eax
call fcn.00413dce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40b86d
call fcn.00413dce
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov eax, 0x48c050
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b8aa
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.00401032
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 0x40bb61
mov ebx, dword [ebp - 0x28]
call fcn.0040104b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40b8ec
push 4
call fcn.00413df8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40b8ff
push 1
call fcn.00413df8
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 0x40b93a
mov eax, 0x48c050
push eax
push 4
mov ebx, 0x414900
call fcn.00413dda
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40b9b9
mov ebx, dword [ebp - 0x28]
call fcn.0040104b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40b977
push 4
call fcn.00413df8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40b98a
push 1
call fcn.00413df8
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x2c]
call fcn.0040bf45
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 0x34]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40b9b3
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x28]
call fcn.0040104b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40b9d6
push 4
call fcn.00413df8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40b9e9
push 1
call fcn.00413df8
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 0x40ba24
mov eax, 0x48c050
push eax
push 4
mov ebx, 0x414900
call fcn.00413dda
add esp, 0x34
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x40bb59
mov ebx, dword [ebp - 0x28]
call fcn.0040104b
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40ba61
push 4
call fcn.00413df8
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ba74
push 1
call fcn.00413df8
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, 0x64985b
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov eax, 0x64985d
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x2c]
call fcn.0040bc84
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40bac7
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40bad7
push ebx
call fcn.00413dce
add esp, 4
push getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x40baea
mov eax, 0x48c050
push eax
push 1
mov ebx, 0x414f20
call fcn.00413dda
add esp, 0x10
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40bb10
push ebx
call fcn.00413dce
add esp, 4
push 0x649869
push dword [ebp - 0x44]
mov ebx, dword [ebp + 0x24]
push dword [ebx]
mov ecx, 3
call fcn.004013fc
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40bb3d
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp + 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40bb53
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x24]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x40b8c1
add esp, 0xc
push 0x48c050
mov ebx, dword [ebp + 0x34]
push dword [ebx]
call fcn.004012f4
add esp, 8
cmp eax, 0
jne 0x40bbb6
mov ebx, dword [ebp + 0x54]
mov eax, dword [ebx]
test eax, eax
je 0x40bb9d
push eax
mov ebx, eax
call fcn.00401391
inc eax
push eax
call fcn.00413dd4
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 0x40bbb0
push ebx
call fcn.00413dce
add esp, 4
pop eax
mov ebx, dword [ebp + 0x34]
mov dword [ebx], eax
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
call fcn.0040ca57
mov ebx, eax
test ebx, ebx
je 0x40bbd0
push ebx
call fcn.00413dce
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40bbea
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00413dd4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40bbef
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40bc00
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bc10
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40bc20
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bc30
push ebx
call fcn.00413dce
add esp, 4
mov ebx, dword [ebp - 0x28]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40bc4e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40bc4a
imul eax, dword [ebx]
jmp 0x40bc3f
mov ecx, eax
test ecx, ecx
je 0x40bc6d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40bc66
push ebx
push eax
call fcn.00413dce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40bc54
call fcn.00413dce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x54