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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431988
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x44606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], 0
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 1
call fcn.00404f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0xa
push str.User_Agent
mov dword [ebp - 0x100], 0xbb8
mov byte [ebp - 0xfc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409390
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xf8]
call fcn.00407300
push 0x6d
push str.Mozilla_5.0__Windows_NT_10.0__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_56.0.2924.87_Safari_537.36
mov ecx, eax
call fcn.00409390
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405964
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40595a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c0a
push edx
push ecx
call fcn.004137b1
add esp, 8
push 0xc
push str.Content_Type
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00409390
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xf8]
call fcn.00407300
push 0x18
push str.text_html__charsetUTF_8
mov ecx, eax
call fcn.00409390
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4059de
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4059d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c0f
push edx
push ecx
call fcn.004137b1
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00405710
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x150]
call fcn.004051b0
mov esi, eax
lea ecx, [ebp - 0x74]
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 0x78], eax
lea eax, [esi + 4]
push eax
call fcn.00407960
lea ebx, [esi + 0x1c]
lea eax, [ebp - 0x5c]
cmp eax, ebx
je 0x405a3c
mov ecx, eax
call fcn.00407150
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x58], eax
mov dword [ebx + 4], ecx
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x54]
call fcn.00407960
add esi, 0x3c
lea eax, [ebp - 0x3c]
cmp eax, esi
je 0x405a6f
mov ecx, eax
call fcn.00407150
mov eax, dword [esi]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
mov dword [esi], ecx
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 5
call fcn.004057c0
call fcn.004021c0
mov ecx, eax
test ecx, ecx
je 0x405c14
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x28]
call fcn.004079e0
mov byte [ebp - 4], 9
mov dword [edi], 0
call fcn.004021c0
mov ecx, eax
test ecx, ecx
je 0x405c1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x440dd0
mov byte [ebp - 4], 0xa
mov ecx, edi
test eax, 0xffff0000
jne 0x405aea
movzx eax, ax
push eax
call fcn.004098b0
jmp 0x405af6
push 0
push 0x440dd0
call fcn.00409ad0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x104], 1
jb 0x405b18
mov edx, dword [ebp - 0x28]
test edx, edx
jne 0x405b18
xor ecx, ecx
jmp 0x405b29
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b20
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00409ad0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x405b6a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b60
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c28
push edx
push ecx
call fcn.004137b1
add esp, 8
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405b83
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x78]
call fcn.004057c0
lea ecx, [ebp - 0xa8]
call fcn.00405120
lea ecx, [ebp - 0xf0]
call fcn.00405040
lea ecx, [ebp - 0xf8]
call fcn.00407150
push 0x40
push dword [ebp - 0xf8]
call fcn.004137b1
mov edx, dword [ebp + 0x1c]
add esp, 8
cmp edx, 0x10
jb 0x405bec
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405be2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c2d
push edx
push ecx
call fcn.004137b1
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret
call fcn.004189c5
call fcn.004189c5
push 0x80004005
call fcn.00402030
push 0x80004005
call fcn.00402030
call fcn.004189c5
call fcn.004189c5
int3