Function at 0x47ac20
Capabilities:
Print debug messages
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
sub esp, 0xe34
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0xe2c], eax
mov eax, dword [str.AddPortMapping]
push ebx
push ebp
mov ebp, dword [esp + 0xe4c]
push esi
mov esi, ecx
mov ecx, dword [0x53d680]
mov dword [esp + 0x10], eax
movzx eax, word [0x53d688]
mov dword [esp + 0x14], ecx
mov cl, byte [0x53d68a]
mov ebx, edx
mov edx, dword [0x53d684]
push edi
mov edi, dword [esp + 0xe5c]
mov word [esp + 0x20], ax
mov eax, dword [0x53d690]
mov byte [esp + 0x22], cl
mov ecx, dword [0x53d694]
mov dword [esp + 0x1c], edx
mov edx, dword [str.HTTP_1.1_200_OK_r_n]
mov dword [esp + 0x28], eax
movzx eax, word [0x53d69c]
push 0x200
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov edx, dword [0x53d698]
lea ecx, [esp + 0x3c]
push 0
push ecx
mov dword [esp + 0x3c], edx
mov word [esp + 0x40], ax
call fcn.004e9730
add esp, 0xc
push 0x400
lea edx, [esp + 0x63c]
push 0
push edx
call fcn.004e9730
add esp, 0xc
push 0x400
lea eax, [esp + 0x23c]
push 0
push eax
call fcn.004e9730
add esp, 0xc
push 0x400
lea ecx, [esp + 0xa3c]
push 0
push ecx
call fcn.004e9730
mov edx, dword [esp + 0xe5c]
mov eax, dword [esp + 0xe58]
add esp, 0xc
push 0
push 1
push ebx
push esi
push edx
push 0x5311c4
push eax
push str._NewRemoteHost___NewRemoteHost__NewExternalPort__d__NewExternalPort__NewProtocol__s__NewProtocol__NewInternalPort__d__NewInternalPort__NewInternalClient__s__NewInternalClient__NewPortMappingDescription__s__NewPortMappingDescription__NewEnabled__d__NewEnabled__NewLeaseDuration__d__NewLeaseDuration_
lea ecx, [esp + 0x58]
push 0x200
push ecx
call fcn.004e45ce
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x64]
push eax
push edi
mov ecx, edx
push ecx
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.or_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n_s______u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea edx, [esp + 0xa74]
push 0x400
push edx
call fcn.004e45ce
mov esi, eax
add esp, 0x44
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0xe58]
push eax
push edi
push esi
push ecx
push ebp
push 0x56c7e0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea edx, [esp + 0x654]
push 0x400
push edx
call fcn.004e45ce
add esp, 0x24
mov edi, eax
push esi
lea eax, [esp + 0xa3c]
push eax
lea ecx, [esp + edi + 0x640]
push ecx
call fcn.004ef8a0
add esp, 0xc
test edi, edi
jle 0x47ae97
push 0
add esi, edi
mov edi, dword [esp + 0xe4c]
push esi
lea edx, [esp + 0x640]
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
lea eax, [esp + 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
jle 0x47ae97
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:AddPortMapping.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47ae97
lea ecx, [esp + 0x238]
push 0x400
push ecx
mov eax, edi
xor esi, esi
call fcn.0047a280
add esp, 8
test eax, eax
jle 0x47ae97
lea esp, [esp]
add esi, eax
lea edx, [esp + esi + 0x238]
push 0x400
push edx
mov eax, edi
call fcn.0047a280
add esp, 8
test eax, eax
jg 0x47ae30
test esi, esi
je 0x47ae97
push 0
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x244]
push ecx
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x23c]
push eax
call fcn.004e4610
add esp, 8
test eax, eax
je 0x47ae97
mov eax, 1
jmp 0x47ae99
xor eax, eax
mov ecx, dword [esp + 0xe3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0b83
add esp, 0xe34
ret