Function at 0x42fbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c5f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov al, byte [esp + 0x54]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00401ff0
mov cl, byte [esp + 0x64]
push ebx
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov dword [esp + 0x60], ebx
call fcn.00401ff0
mov edi, 0x45ad08
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x45ad08
lea ecx, [esp + 0x3c]
call fcn.004050e0
mov dl, byte [esp + 0x64]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
mov byte [esp + 0x18], dl
call fcn.00401ff0
mov edi, str.NewRemoteHost
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.NewRemoteHost
lea ecx, [esp + 0x1c]
call fcn.004050e0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x68], 2
call fcn.0042c7d0
add esp, 0xc
mov ecx, dword [0x44e274]
mov byte [esp + 0x5c], 3
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00430f50
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 2
call fcn.00401ff0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00401ff0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], bl
call fcn.00401ff0
mov dl, byte [esp + 0x64]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00401ff0
mov edi, str.NewExternalPort
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402180
test al, al
je 0x42fd25
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.NewExternalPort
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00402160
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov byte [esp + 0x68], 4
call fcn.0042c960
add esp, 0xc
mov ecx, dword [0x44e274]
mov byte [esp + 0x5c], 5
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00430f50
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 4
call fcn.00401ff0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], bl
call fcn.00401ff0
mov dl, byte [esp + 0x64]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00401ff0
mov edi, str.NewProtocol
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00402180
test al, al
je 0x42fdcd
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.NewProtocol
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00402160
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
mov byte [esp + 0x68], 6
call fcn.0042c7d0
add esp, 0xc
mov ecx, dword [0x44e274]
mov byte [esp + 0x5c], 7
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00430f50
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 6
call fcn.00401ff0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], bl
call fcn.00401ff0
mov edi, str.DeletePortMapping
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x14], dl
push ecx
push str.DeletePortMapping
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004050e0
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x64], 8
call fcn.0042ef00
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x64], al
cmp ecx, ebx
je 0x42fe97
lea edx, [ecx - 1]
mov cl, byte [ecx - 1]
cmp cl, bl
je 0x42fe8a
cmp cl, 0xff
je 0x42fe8a
dec cl
mov byte [edx], cl
jmp 0x42fe97
push edx
call fcn.00439308
mov al, byte [esp + 0x68]
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp edx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x42fecc
mov cl, byte [edx - 1]
cmp cl, bl
je 0x42febe
cmp cl, 0xff
je 0x42febe
dec cl
mov byte [edx - 1], cl
jmp 0x42fecc
dec edx
push edx
call fcn.00439308
mov al, byte [esp + 0x68]
add esp, 4
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 8