Function at 0x40d48c
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
push 0xc
call fcn.00417ae7
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x4bd776
push ebx
add ebx, 4
push ebx
push 8
call fcn.00417ae7
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4bd3ed
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.00417ae7
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x4bd3ed
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov eax, str.http:__192.168.1.1_cgi_bin_net_wanset.asp
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d541
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40d56a
push eax
mov ebx, eax
call fcn.0040124a
inc eax
push eax
call fcn.00417ae7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40d57b
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.image_gif__image_jpeg__image_pjpeg__application_x_ms_application__application_xamlxml__application_x_ms_xbap___
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Accept
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d5c1
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d5d1
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.http:__192.168.1.1_cgi_bin_sta_device.asp
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Referer
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d613
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d623
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, 0x4bda80
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Accept_Language
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d665
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d675
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d6b7
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d6c7
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.192.168.1.1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Host
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d709
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d719
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.Keep_Alive
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Connection
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d75b
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d76b
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.no_cache
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, str.Cache_Control
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40d7ad
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40d7bd
push ebx
call fcn.00417aed
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
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 0x40d7ee
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov dword [ebp - 0x14], 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]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x44], 0
push 0
lea eax, [ebp - 0x44]
push eax
push 1
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00409f08
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40d89c
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40d8ac
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x40d8bc
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40d8cc
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40d8dc
push ebx
call fcn.00417aed
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40d8f0
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40d907
mov eax, 0x4bd3ed
push eax
push 1
mov ebx, 0x4191b0
call fcn.00417af3
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40d931
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push str.cb_enblService_checked
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40d966
mov eax, 0x4bd3d7
push eax
push 4
mov ebx, 0x4182c0
call fcn.00417af3
add esp, 0x34
push getpeername
push 0
push 0
push 0
push 0
push 0
push getpeername
push 0
push str.cb_enblService_checked
push getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40d9aa
mov eax, 0x4bd3d7
push eax
push 4
mov ebx, 0x4182c0
call fcn.00417af3
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x40d9d9
mov eax, 1
jmp 0x40d9e3
mov eax, 0
jmp 0x40d9e3
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d9f4
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40da04
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40da24
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40da34
push ebx
call fcn.00417aed
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40da44
push ebx
call fcn.00417aed
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4