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

Disassembly:
sub esp, 0x28
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x38]
cmp esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov byte [esp + 0xb], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xc], 0
je 0x4a192e
mov al, byte [esp + 0x34]
test al, al
je 0x4a192e
movzx eax, al
imul eax, eax, 0x88
push eax
push ebp
push esi
call fcn.004b3a80
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebp
push ebp
push 0x10
push ebp
call fcn.004c9658
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4a1924
push ebx
push edi
push eax
mov edi, 1
push edi
call fcn.00477460
mov ebx, eax
add esp, 8
cmp ebx, ebp
mov dword [esp + 0x2c], ebx
je 0x4a1922
lea edx, [esp + 0x18]
push edx
push ebx
push ebp
push 0x10
push ebp
call fcn.004c9658
test eax, eax
jne 0x4a1919
mov al, byte [esp + 0x3c]
test al, al
jbe 0x4a17b2
test ebx, ebx
je 0x4a17b2
cmp dword [ebx + 0x44], edi
mov dl, byte [esp + 0x13]
jne 0x4a17a3
cmp dl, al
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x1c], ecx
jae 0x4a17a3
jmp 0x4a1570
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4a17a3
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp cx, 2
jne 0x4a15a8
mov eax, dword [eax + 4]
movzx edx, dl
imul edx, edx, 0x88
push eax
add esi, edx
call dword [0x58a324]
mov dword [esi], eax
mov dword [esi + 0x7c], 0
jmp 0x4a15eb
cmp cx, 0x17
jne 0x4a1792
cmp dword [eax + 0x18], 0
jne 0x4a1792
movzx ecx, dl
mov edx, dword [eax + 8]
imul ecx, ecx, 0x88
add esi, ecx
mov dword [esi + 0x6c], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x70], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x74], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x80], edx
mov dword [esi + 0x7c], edi
cmp dword [ebx + 0x8c], 0
jne 0x4a1609
cmp dword [esi + 0x7c], 0
jne 0x4a1609
cmp dword [esi], 0x7f000001
jne 0x4a1609
mov dword [esi + 4], 0xff000000
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x4a165a
mov ecx, dword [esi + 0x7c]
test ecx, ecx
jne 0x4a1635
mov edx, dword [eax + 0xc]
cmp word [edx], 2
jne 0x4a1648
mov ecx, 0x20
sub ecx, dword [eax + 0x14]
or eax, 0xffffffff
shl eax, cl
mov dword [esi + 4], eax
jmp 0x4a165a
cmp ecx, edi
jne 0x4a1648
mov edx, dword [eax + 0xc]
cmp word [edx], 0x17
jne 0x4a1648
cmp dword [eax + 0x10], 0x1c
je 0x4a1651
mov eax, dword [eax + 8]
test eax, eax
jne 0x4a1616
jmp 0x4a165a
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x84], ecx
mov dword [esi + 0x10], 0
mov eax, dword [ebx + 0x34]
test eax, eax
jbe 0x4a1684
cmp eax, 8
ja 0x4a1684
push eax
lea edx, [ebx + 0x2c]
push edx
lea eax, [esi + 8]
push eax
call fcn.004b42c0
mov ecx, dword [ebx + 0x34]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4a16d2
push eax
call fcn.004751d0
push 0
mov ebp, eax
push 0x32
push ebp
call fcn.004748d0
mov edi, eax
push edi
push 0x5cd6b0
lea edx, [esi + 0x3a]
push 0x32
push edx
call fcn.004776e0
add esp, 0x20
test edi, edi
je 0x4a16c0
push edi
call fcn.00477540
add esp, 4
test ebp, ebp
je 0x4a16cd
push ebp
call fcn.00477540
add esp, 4
mov edi, 1
mov eax, dword [ebx + 0x40]
cmp eax, 6
je 0x4a175c
cmp eax, 0x18
je 0x4a1739
cmp eax, 0x47
je 0x4a170f
movzx eax, byte [esp + 0x14]
push eax
push str.unk_d
mov dword [esi + 0x24], 0
push 0xa
add esi, 0x30
push esi
call fcn.004776e0
add esp, 0x10
add byte [esp + 0x14], 1
jmp 0x4a1781
movzx eax, byte [esp + 0x15]
push eax
push str.wlan_d
lea eax, [esi + 0x30]
push 0xa
push eax
mov dword [esi + 0x24], 3
call fcn.004776e0
add esp, 0x10
add byte [esp + 0x15], 1
mov dword [esi + 0x28], edi
jmp 0x4a1781
movzx eax, byte [esp + 0x16]
push eax
push str.lo_d
mov dword [esi + 0x24], edi
push 0xa
add esi, 0x30
push esi
call fcn.004776e0
add esp, 0x10
add byte [esp + 0x16], 1
jmp 0x4a1781
movzx eax, byte [esp + 0x17]
push eax
push str.lan_d
mov dword [esi + 0x24], 2
push 0xa
add esi, 0x30
push esi
call fcn.004776e0
add esp, 0x10
add byte [esp + 0x17], 1
add byte [esp + 0x13], 1
mov dl, byte [esp + 0x13]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x1c]
cmp dl, byte [esp + 0x3c]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
jb 0x4a1570
mov al, byte [esp + 0x3c]
cmp dl, al
mov ebx, dword [ebx + 8]
jb 0x4a1541
lea edx, [esp + 0x18]
push edx
push 0
call fcn.004c9652
cmp eax, 0x6f
jne 0x4a17d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a17d9
push eax
push edi
call fcn.00477460
add esp, 8
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004c9652
test eax, eax
jne 0x4a1908
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x4a18e6
mov ebx, dword [0x58a36c]
mov ecx, dword [esp + 0x1c]
add ecx, 0x1b0
push ecx
call dword [0x58a328]
push eax
call dword [0x58a324]
mov ebp, eax
mov al, byte [esp + 0x13]
test al, al
jbe 0x4a18d4
movzx edx, al
add esi, 0x14
mov dword [esp + 0x28], edx
cmp dword [esi + 0x68], edi
je 0x4a18c0
cmp dword [esi - 0x14], ebp
jne 0x4a18c0
mov eax, dword [esp + 0x1c]
add eax, 0x1d8
push eax
mov dword [esp + 0x28], 8
call dword [0x58a328]
push eax
call dword [0x58a324]
push eax
mov dword [esi], eax
call ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
mov edi, eax
call ebx
push eax
push edi
call fcn.004c964c
test eax, eax
jne 0x4a18a2
cmp dword [esp + 0x24], 6
jne 0x4a18a2
mov eax, dword [esp + 0x30]
mov cx, word [esp + 0x34]
mov dword [esi + 8], eax
mov word [esi + 0xc], cx
mov dword [esi + 4], 1
jmp 0x4a18bb
push ebp
push str.Could_not_find_the_gateway_MAC_address_for_IP_address:__08x
push 0
push str.upnp_get_interfaces
push 1
push 4
call fcn.0048d750
add esp, 0x18
mov edi, 1
add esi, 0x88
sub dword [esp + 0x28], edi
jne 0x4a1832
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4a1802
cmp byte [esp + 0x13], 0
jne 0x4a1904
push str.Could_not_find_a_usable_active_network_interface.
push 0
push str.upnp_get_interfaces
push edi
push 3
call fcn.0048d750
add esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4a1915
push ebx
call fcn.00477540
add esp, 4
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00477540
add esp, 4
pop edi
pop ebx
mov al, byte [esp + 0xb]
pop esi
pop ebp
add esp, 0x28
ret
pop esi
xor al, al
pop ebp
add esp, 0x28
ret