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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 0xa
jg 0x51ae44
push 0x114a494
call fcn.0051ae7b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x51a768
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0xffffffffffffffff
push 5
push 0x16020fde
push 0x52010b0c
call fcn.006274d1
add esp, 0x18
push 0xb28e1c
push dword [ebp - 4]
call fcn.00403848
add esp, 8
cmp eax, 0
jne 0x51ae19
push 0xb29c81
push dword [0x114a4d4]
call fcn.00403848
add esp, 8
cmp eax, 0
jne 0x51aa77
push 0x70f548
push dword [0x114a4d8]
push 0xb40fd0
mov ecx, 3
call fcn.00403015
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 8
call fcn.006274a7
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
push 1
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, 0xb41013
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
push 0x114a5b4
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push eax
call fcn.004dd991
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x51a8e4
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x51a8f4
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x51a904
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x51a914
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x51a924
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x51a934
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x51a944
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x51a954
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x62d7b0
call fcn.006274b3
add esp, 0x10
call fcn.006274ad
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x51a98a
mov eax, 0x70ee06
push eax
push 1
mov ebx, 0x629890
call fcn.006274b3
add esp, 0x10
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x51a9b0
push ebx
call fcn.006274ad
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51a9c4
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov eax, 0xab0857
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xb3e0d5
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408bfb
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x51aa14
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x51aa24
push ebx
call fcn.006274ad
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51aa38
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x51aa58
push eax
mov ebx, eax
call fcn.00402faa
inc eax
push eax
call fcn.006274a7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x114a4dc]
test ebx, ebx
je 0x51aa6c
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [0x114a4dc], eax
jmp 0x51ada2
push 0xb28e25
push dword [0x114a4d4]
call fcn.00403848
add esp, 8
cmp eax, 0
jne 0x51ada2
push 0x70f548
push dword [0x114a4d8]
push 0xb41139
mov ecx, 3
call fcn.00403015
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 8
call fcn.006274a7
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
push 1
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, 0xb41013
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
push 1
push 0x114a5b4
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push eax
call fcn.004dd991
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x51abb9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x51abc9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x51abd9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x51abe9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x51abf9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x51ac09
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x51ac19
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x51ac29
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x62d7b0
call fcn.006274b3
add esp, 0x10
call fcn.006274ad
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x51ac5f
mov eax, 0x70ee06
push eax
push 1
mov ebx, 0x629890
call fcn.006274b3
add esp, 0x10
mov dword [ebp - 0x58], eax
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x51ac85
push ebx
call fcn.006274ad
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51ac99
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov eax, 0xab0857
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xb3e0d5
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00408bfb
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x51ace9
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x51acf9
push ebx
call fcn.006274ad
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51ad0d
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x51ad2d
push eax
mov ebx, eax
call fcn.00402faa
inc eax
push eax
call fcn.006274a7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x114a4dc]
test ebx, ebx
je 0x51ad41
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [0x114a4dc], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [0x114a4dc]
test eax, eax
jne 0x51ad5c
mov eax, 0x70ef7f
push eax
push 1
mov ebx, 0x627a80
call fcn.006274b3
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x46
jge 0x51ada2
mov eax, 0xb4117c
push eax
mov ebx, dword [0x114a4dc]
test ebx, ebx
je 0x51ad95
push ebx
call fcn.006274ad
add esp, 4
pop eax
mov dword [0x114a4dc], eax
mov dword [ebp - 0x10], 1
mov ebx, 9
call fcn.00403b2b
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [0x114a4dc]
test eax, eax
jne 0x51adc1
mov eax, 0x70ef7f
push eax
push 0x50001
push 0x16020fec
push 0x52010b0c
push 5
mov eax, 4
mov ebx, 0x6af460
call fcn.006274cb
add esp, 0x40
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004c8bb6
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x51ae0a
push ebx
call fcn.006274ad
add esp, 4
call fcn.0042b743
jmp 0x51ae44
push 0
push dword [ebp - 4]
push 0xffffffffffffffff
push 8
push 0x16020fde
push 0x52010b0c
call fcn.006274d1
add esp, 0x18
push 0xbb8
call fcn.004145fe
pop ecx
jmp 0x51a73c
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x51ae57
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x51ae67
push ebx
call fcn.006274ad
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x51ae77
push ebx
call fcn.006274ad
add esp, 4
mov esp, ebp
pop ebp
ret