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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x40f138
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.00592b20
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.0050a950
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40f159
mov dword [ebp - 0x24], 0x50
jmp 0x40f15f
mov edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
movzx eax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.00559420
add esp, 4
push eax
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
push ecx
call fcn.00594920
add esp, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
push eax
push 0x40efa0
call fcn.00593390
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
push 0x40f080
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.005915f0
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
jne 0x40f29f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.0053f930
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f1e3
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], ecx
jmp 0x40f1ea
mov dword [ebp - 0x28], 0x5ee8fc
mov edx, dword [ebp - 0x28]
push edx
push 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.00593b30
add esp, 0x10
test eax, eax
je 0x40f212
or eax, 0xffffffff
jmp 0x40f455
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], 1
jne 0x40f223
or eax, 0xffffffff
jmp 0x40f455
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x31], al
add dword [ebp - 0x2c], 1
cmp byte [ebp - 0x31], 0
jne 0x40f235
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x5c]
push ecx
call fcn.0058cd00
add esp, 0xc
test eax, eax
je 0x40f279
or eax, 0xffffffff
jmp 0x40f455
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
push str.Content_Type
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.00591ff0
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x40f415
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 1
jne 0x40f415
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.004e5340
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.0053f930
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x40f308
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x3c]
mov al, byte [edx]
mov byte [ebp - 0x41], al
add dword [ebp - 0x3c], 1
cmp byte [ebp - 0x41], 0
jne 0x40f2e5
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
jmp 0x40f30f
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x1c], 0
je 0x40f347
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x50]
mov al, byte [edx]
mov byte [ebp - 0x55], al
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x40f324
mov ecx, dword [ebp - 0x50]
sub ecx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
jmp 0x40f34e
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 1
jbe 0x40f3d3
push 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.004c9590
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ce490
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x40f39a
mov dword [ebp - 0x64], 0x5def3b
jmp 0x40f3a0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x18], 0
jne 0x40f3af
mov dword [ebp - 0x68], 0x5def45
jmp 0x40f3b6
mov dword [ebp - 0x68], 0x5ee910
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str._s_s_s
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004c7ef1
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x40f3e1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x6c], edx
jmp 0x40f3e8
mov dword [ebp - 0x6c], 0x5ee91c
mov eax, dword [ebp - 0x6c]
push eax
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.00593b30
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x28], 1
jne 0x40f415
or eax, 0xffffffff
jmp 0x40f455
cmp dword [ebp - 8], 0
jne 0x40f43a
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:52.0__Gecko_20100101_Firefox_52.0
push str.User_Agent
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00591ff0
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0
jne 0x40f452
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x28], 2
mov eax, dword [ebp - 8]
jmp 0x40f455
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4