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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xf4
mov ebx, dword [esp + 0x10c]
movzx eax, byte [ebx]
lea edi, [ebx + 1]
test al, 1
je 0x401a03
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
jmp 0x401a07
shr eax, 1
mov ecx, edi
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe4], str.tcp:
mov dword [esp + 0xe8], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xf4]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xfc]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
movzx ecx, byte [ebx]
mov ebp, edi
test cl, 1
je 0x401a60
mov ebp, dword [ebx + 8]
xor esi, esi
test al, al
jne 0x401ad5
test cl, 1
je 0x401a70
mov ecx, dword [ebx + 4]
jmp 0x401a72
shr ecx, 1
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xd4], str.udp:
mov dword [esp + 0xd8], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xe4]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xec]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
test al, al
je 0x401d16
test byte [ebx], 1
je 0x401ace
mov edi, dword [ebx + 8]
mov esi, 1
mov ebp, edi
add ebp, 4
mov dword [esp + 0x1c], 0x15b2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x402026
mov ebx, eax
cmp eax, 0xb
jae 0x401b53
mov eax, ebx
add al, bl
mov byte [esp + 0x3c], al
lea edi, [esp + 0x3d]
test ebx, ebx
jne 0x401b7f
jmp 0x401b8a
mov dword [esp + 0x20], esi
mov esi, ebx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
call fcn.00420210
add esp, 4
mov edi, eax
mov dword [esp + 0x44], eax
add ebx, 2
mov dword [esp + 0x3c], ebx
mov ebx, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
push ebx
push ebp
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
lea edi, [esp + 0x24]
lea edx, [esp + 0x3c]
push eax
push 0
push ecx
push edi
push edx
call fcn.0042b8c0
add esp, 0x14
mov ebx, eax
test byte [esp + 0x3c], 1
je 0x401bc1
push dword [esp + 0x44]
call fcn.004203b0
add esp, 4
test bl, bl
je 0x401c14
mov dword [esp + 0x3c], esi
lea ecx, [esp + 0x40]
push edi
call fcn.00423570
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x108]
mov dword [edi], ecx
movsd xmm0, qword [esp + 0x40]
movsd qword [edi + 4], xmm0
mov ecx, dword [esp + 0x48]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
test byte [esp + 0x24], 1
jne 0x401ec8
jmp 0x401ed4
lea ecx, [esp + 0x7c]
lea ebx, [esp + 0x44]
mov dword [esp + 0x44], 0x57bb7c
lea esi, [esp + 0x48]
mov dword [esp + 0x3c], 0x57bd38
mov dword [esp + 0x7c], 0x57bd4c
mov dword [esp + 0x40], 0
push esi
call fcn.0042c9d0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x3c], 0x57bb68
mov dword [esp + 0x7c], 0x57bb90
mov dword [esp + 0x44], 0x57bb7c
mov ecx, esi
call fcn.0042d020
mov dword [esp + 0x48], 0x57bdd8
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0x18
mov dword [esp + 0xcc], 2
mov byte [esp + 0xd0], 1
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov edi, dword [eax]
push 0x19
push str.invalid_network_address_
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push ebp
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
push 3
push 0x57869f
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
call esi
mov ebp, dword [eax]
movzx eax, byte [esp + 0x10]
test al, 1
je 0x401de0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x401de6
lea ecx, [esp + 0x7c]
mov dword [esp + 0x44], 0x57bb7c
lea esi, [esp + 0x48]
mov dword [esp + 0x3c], 0x57bd38
mov dword [esp + 0x7c], 0x57bd4c
mov dword [esp + 0x40], 0
push esi
call fcn.0042c9d0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x3c], 0x57bb68
mov dword [esp + 0x7c], 0x57bb90
mov dword [esp + 0x44], 0x57bb7c
mov ecx, esi
call fcn.0042d020
mov dword [esp + 0x48], 0x57bdd8
xorps xmm0, xmm0
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x78], 0x18
mov dword [esp + 0xcc], 1
mov byte [esp + 0xd0], 1
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov ebp, dword [eax]
push 0x2e
push str.protocol_prefix__tcp:_or_udp:__is_missed:
lea eax, [esp + 0x4c]
push eax
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], ebp
call esi
mov ebp, dword [eax]
movzx eax, byte [ebx]
test al, 1
je 0x401ef0
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
jmp 0x401ef2
shr eax, 1
lea ecx, [esp + 0x11]
mov edi, dword [esp + 0x108]
push eax
push ecx
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], ebp
lea ebp, [esp + 0x30]
mov ecx, ebp
lea eax, [esp + 0x3c]
push eax
call fcn.00414600
mov esi, dword [esp + 0xcc]
mov ecx, esp
push ebp
call fcn.00423570
mov dword [esp + 0xc], esi
movzx eax, byte [esp]
mov ecx, dword [esp + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 1]
mov dword [edi + 1], ecx
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [edi], al
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], 1
test byte [esp + 0x30], 1
je 0x401e6e
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
mov dword [esp + 0x3c], 0x57bb68
mov dword [esp + 0x7c], 0x57bb90
mov dword [esp + 0x44], 0x57bb7c
mov dword [esp + 0x48], 0x57bdd8
test byte [esp + 0x68], 1
je 0x401ea1
push dword [esp + 0x70]
call fcn.004203b0
add esp, 4
lea ecx, [esp + 0x48]
call fcn.0042cdb0
lea ecx, [esp + 0x3c]
push 0x57bb9c
call fcn.0043b7e0
lea ecx, [esp + 0x7c]
call fcn.0042cc10
test byte [esp + 0x24], 1
je 0x401ed4
push dword [esp + 0x2c]
call fcn.004203b0
add esp, 4
test byte [esp + 0x10], 1
je 0x402019
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
jmp 0x402019
shr eax, 1
push eax
push edi
lea ebx, [esp + 0x4c]
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], ebp
call esi
mov edi, dword [eax]
push 2
push 0x578637
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
push 0x19
push str.Expected_address_format:_n
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
call esi
mov edi, dword [eax]
push 0x30
push str._protocol_:_address_:_port___tcp:localhost:5554_
push ebx
call fcn.00414a40
add esp, 0xc
call esi
mov dword [eax], edi
lea eax, [esp + 0x3c]
lea ebp, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.00414600
mov esi, dword [esp + 0xcc]
mov ecx, esp
push ebp
call fcn.00423570
mov dword [esp + 0xc], esi
movzx eax, byte [esp]
mov ecx, dword [esp + 4]
mov edi, dword [esp + 0x108]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 1]
mov dword [edi + 1], ecx
mov ecx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov byte [edi], al
mov dword [edi + 8], ecx
mov dword [edi + 0xc], esi
mov dword [edi + 0x14], 1
test byte [esp + 0x30], 1
je 0x401fc6
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
mov dword [esp + 0x3c], 0x57bb68
mov dword [esp + 0x7c], 0x57bb90
mov dword [esp + 0x44], 0x57bb7c
mov dword [esp + 0x48], 0x57bdd8
test byte [esp + 0x68], 1
je 0x401ff9
push dword [esp + 0x70]
call fcn.004203b0
add esp, 4
lea ecx, [esp + 0x48]
call fcn.0042cdb0
lea ecx, [esp + 0x3c]
push 0x57bb9c
call fcn.0043b7e0
lea ecx, [esp + 0x7c]
call fcn.0042cc10
mov eax, edi
add esp, 0xf4
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x3c]
call fcn.00423320
nop