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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x10
call fcn.004169c7
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 0xf2f392
push ebx
add ebx, 4
push ebx
push 8
call fcn.004169c7
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 8
call fcn.004169c7
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 0x10
call fcn.004169c7
add esp, 4
pop ebx
push ebx
mov dword [ebx], 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
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.00409087
pop ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0xc
call fcn.004169c7
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x103766b
push ebx
add ebx, 8
push ebx
push 8
call fcn.004169c7
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.0040e3be
pop ebx
mov dword [ebp - 0x1c], 0
mov eax, 0x10379c2
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e565
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 8
call fcn.004169c7
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
push dword [ebp + 8]
call fcn.0040b8f4
mov dword [ebp - 0x60], eax
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40e673
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40e683
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40e693
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x40e6a3
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40e6b3
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40e6c3
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40e6d3
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40e6e3
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41af00
call fcn.004169d3
add esp, 0x10
call fcn.004169cd
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x40e719
mov eax, 0xf2edb2
push eax
push 1
mov ebx, 0x418470
call fcn.004169d3
add esp, 0x10
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40e73f
push ebx
call fcn.004169cd
add esp, 4
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd14
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x40e75b
push ebx
call fcn.004169cd
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e76f
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 8]
push eax
mov eax, 0x1037a5e
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40e7d1
push ebx
call fcn.004169cd
add esp, 4
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e80d
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 2
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e84d
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0xf2ed66
push dword [ebp - 0x10]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x40e884
mov eax, 0x103762b
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e880
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0xf2ed66
push dword [ebp - 0x14]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x40e936
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
lea eax, [ebp - 8]
push eax
mov eax, 0x1037a7d
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40e8fb
push ebx
call fcn.004169cd
add esp, 4
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e932
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0xf2ed66
push dword [ebp - 0x14]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x40e94f
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push 0x1037a94
push dword [ebp - 0x14]
push 0x103763e
push dword [ebp - 0x10]
push 0x1037645
mov ecx, 6
call fcn.0040108c
add esp, 0x18
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 8
call fcn.004169c7
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 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
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x54], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x58], 0
push 0
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x5c], 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push 1
push 1
mov eax, 0x1037a98
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040b8f4
mov dword [ebp - 0x64], eax
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x40ea85
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ea95
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x40eaa5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x40eab5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x40eac5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40ead5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40eae5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40eaf5
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40eb05
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x30]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x41af00
call fcn.004169d3
add esp, 0x10
call fcn.004169cd
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x40eb3b
mov eax, 0xf2edb2
push eax
push 1
mov ebx, 0x418470
call fcn.004169d3
add esp, 0x10
mov dword [ebp - 0x68], eax
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x40eb61
push ebx
call fcn.004169cd
add esp, 4
mov eax, dword [ebp - 0x68]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40eb75
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x40ec6d
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
mov eax, 0x103765c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ebda
push ebx
call fcn.004169cd
add esp, 4
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
push 1
mov eax, 0x1037660
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x2c]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ec15
push ebx
call fcn.004169cd
add esp, 4
push dword [ebp - 0x34]
push 0x1037664
push dword [ebp - 0x28]
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ec40
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40ec50
push ebx
call fcn.004169cd
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ec64
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
jmp 0x40ed78
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0xf2f3be
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, 0x1037ab6
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407b8b
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ecb9
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ecc9
push ebx
call fcn.004169cd
add esp, 4
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov eax, 0xf2f3be
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1037ac5
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00407b8b
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40ed15
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40ed25
push ebx
call fcn.004169cd
add esp, 4
push dword [ebp - 0x44]
push 0x1037664
push dword [ebp - 0x30]
mov ecx, 3
call fcn.0040108c
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40ed50
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40ed60
push ebx
call fcn.004169cd
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ed74
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e035
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ed98
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0xf2ed66
push dword [ebp - 0x1c]
call fcn.004010e8
add esp, 8
cmp eax, 0
jne 0x40ee48
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
mov ebx, 6
call fcn.00401185
push getpeername
push 0
push 0x1037ad4
push getpeername
push 0
push 0x10374db
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40edf6
mov eax, 0xf2ed66
push eax
push 6
mov ebx, 0x417ae0
call fcn.004169d3
add esp, 0x4c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ee20
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040e035
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40ee44
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ee64
push eax
mov ebx, eax
call fcn.00401021
inc eax
push eax
call fcn.004169c7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40ee69
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ee7a
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ee8a
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40eeaa
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40eeba
push ebx
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.004169cd
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40eeda
push ebx
call fcn.004169cd
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8