Function at 0x40ef50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1910c
call fcn.00437df0
mov eax, dword [0x44e7a0]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x19110], eax
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x7d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x19124], ebx
call fcn.0040d210
push 1
lea ecx, [esp + 0x18]
call fcn.0040d470
push 0x3e8
lea ecx, [esp + 0x18]
call fcn.0040d540
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nMan:__ssdp:discover__r_nMX:_6_r_nST:_urn:schemas_upnp_org:service:WANIPConnection:1_r_n_r_n
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x43d5a0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x19128], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
xor esi, esi
mov dword [esp + 0x5c], esi
push str.239.255.255.250
mov byte [esp + 0x19128], 2
mov dword [esp + 0x64], esi
mov word [esp + 0x60], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x76c
mov edi, eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x5e], ax
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x5c]
lea ebx, [ebx]
cmp dword [esp + 0xa0], 0x10
mov eax, dword [esp + 0x8c]
jae 0x40f048
lea eax, [esp + 0x8c]
mov edx, dword [esp + 0x9c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
inc edx
push edx
mov dword [ecx + 0xc], esi
push eax
lea ecx, [esp + 0x2c]
call fcn.0040d290
test eax, eax
jge 0x40f07d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x40f030
xor eax, eax
mov byte [esp + 0x108], 0
mov ecx, 0x6400
lea edi, [esp + 0x109]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xdc]
push eax
call fcn.00430b50
add esp, 4
xor esi, esi
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
cmp esi, 1
jl 0x40f0bd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov ecx, 0x6400
lea edi, [esp + 0x108]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x68], ecx
stosb byte es:[edi], al
push 0x19000
lea eax, [esp + 0x110]
mov dword [esp + 0x70], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0040d380
test eax, eax
jl 0x40f31f
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 6
push 0
push str.200_OK
lea ecx, [esp + 0x78]
mov byte [esp + 0x19130], 3
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
test eax, eax
lea ecx, [esp + 0x6c]
jle 0x40f311
push 7
push 0
push str.http:__
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, eax
cmp esi, dword [edx]
je 0x40f3dc
push 2
push esi
push 0x43d3bc
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [esp + 0x80]
push eax
push esi
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp edi, dword [edx]
mov byte [esp + 0x19124], 4
je 0x40f1db
cmp edi, esi
jb 0x40f1db
sub edi, esi
push edi
push esi
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x19128], 5
call dword [0x43d1c4]
lea ecx, [esp + 0x40]
mov byte [esp + 0x19124], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 1
push 7
push 0x43ebcc
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, eax
cmp esi, dword [ecx]
mov dword [esp + 0x20], esi
je 0x40f3c7
lea edx, [esi - 7]
push edx
push 7
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push 1
push 0
push 0x43ebc8
lea ecx, [esp + 0xcc]
mov byte [esp + 0x19130], 6
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, eax
cmp ebx, dword [ecx]
je 0x40f36d
push ebx
push 0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov esi, dword [esp + 0x1c]
add esi, 0x1c
push eax
mov ecx, esi
mov byte [esp + 0x19128], 7
call dword [0x43d1c4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x19124], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esi + 0x18], 0x10
jb 0x40f298
mov eax, dword [esi + 4]
jmp 0x40f29b
lea eax, [esi + 4]
lea edi, [esp + 0xdc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40f2c6
test cl, cl
je 0x40f2c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40f2c6
add eax, 2
add edi, 2
test cl, cl
jne 0x40f2a2
xor eax, eax
jmp 0x40f2cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f332
lea ecx, [esp + 0xc0]
mov byte [esp + 0x19124], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x19124], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19124], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0x10]
jmp 0x40f31f
mov byte [esp + 0x19124], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
inc esi
cmp esi, 0xa
mov dword [esp + 0x10], esi
jl 0x40f0b0
jmp 0x40f3ee
mov ecx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x2c], esp
push edx
inc ebx
push ebx
push eax
lea ecx, [esp + 0xe8]
mov byte [esp + 0x37], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
call fcn.0042e9d0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
add esp, 0x1c
mov word [ecx + 0x38], ax
mov edx, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
inc esi
push esi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x58
mov byte [esp + 0x19128], 8
call dword [0x43d1c4]
lea ecx, [esp + 0x24]
mov byte [esp + 0x19124], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x19124], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x19124], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x19124], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
call fcn.0040d550
mov al, byte [esp + 0xf]
test al, al
lea ecx, [esp + 0xec]
mov byte [esp + 0x19124], 1
je 0x40f441
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x88]
mov byte [esp + 0x19124], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x19124], 0xffffffff
call fcn.0040d550
mov al, 1
jmp 0x40f472
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x88]
mov byte [esp + 0x19124], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x14]
mov dword [esp + 0x19124], 0xffffffff
call fcn.0040d550
xor al, al
mov ecx, dword [esp + 0x1911c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x19114]
call fcn.00437d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret