Function at 0x4c04c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test esi, esi
jne 0x4c04fc
test edi, edi
jne 0x4c04fc
push str.pvecAddressesOut___nullptr__pSingleOutput___nullptr
push 0x2fe
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_netadr.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c04f3
int3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
je 0x4c04f3
call fcn.0053db50
test al, al
je 0x4c051a
push str.about_to_perform_blocking_dns_call_from_the_main_thread.__consider_refactoring._n
call fcn.005372f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, 4
ja case.default.0x4c053f
jmp dword [eax*4 + 0x4c0734]
mov dword [ebp - 0x1c], 2
jmp 0x4c0597
mov dword [ebp - 0x1c], 0x17
jmp 0x4c0597
mov dword [ebp - 0x1c], 0x17
mov dword [ebp - 0x20], 0xc00
jmp 0x4c0597
mov dword [ebp - 0x20], 0x400
jmp 0x4c0597
mov dword [ebp - 0x20], 0x900
jmp 0x4c0597
push eax
push str.BResolveHostString___unexpected_DNS_lookup_flag__d_n
push 0x323
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_netadr.cpp
call fcn.00536b80
add esp, 0x10
test al, al
jne 0x4c0597
int3
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0x273f
jne 0x4c05d8
cmp dword [ebp - 0x1c], 0x17
jne 0x4c04f3
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], 2
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4c04f3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4c04f3
test edi, edi
je 0x4c0610
push eax
push dword [ebx + 0x10]
mov ecx, edi
push dword [ebx + 0x18]
call fcn.004c1080
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x10]
mov ecx, esi
call fcn.0046ffa0
lea ecx, [edi + 1]
cmp ecx, eax
jle 0x4c0639
mov ecx, esi
call fcn.0046ffa0
mov ecx, dword [esi + 0x10]
sub ecx, eax
inc ecx
push ecx
mov ecx, esi
call fcn.00499a30
mov edi, dword [esi + 0x10]
lea eax, [edi + 1]
xor edx, edx
mov dword [esi + 0x10], eax
imul ecx, eax, 0x16
mov eax, dword [esi + 4]
mov dword [ecx + eax - 0x16], edx
mov dword [ecx + eax - 0x12], edx
mov dword [ecx + eax - 0xe], edx
mov dword [ecx + eax - 0xa], edx
mov dword [ecx + eax - 6], edx
mov edx, 3
mov word [ecx + eax - 2], dx
xor eax, eax
imul edi, dword [esi + 0x10], 0x16
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x10]
add edi, dword [esi + 4]
mov dword [edi - 0x16], eax
mov dword [edi - 0x12], eax
mov dword [edi - 0xe], eax
mov dword [edi - 0xa], eax
mov dword [edi - 6], eax
mov eax, 3
mov word [edi - 2], ax
test ecx, ecx
je 0x4c06fb
cmp edx, 2
jb 0x4c06fb
movzx eax, word [ecx]
sub eax, 2
je 0x4c06dc
sub eax, 0x15
jne 0x4c0717
cmp edx, 0x1c
jae 0x4c06b3
push 0x6e35c8
push 0x2b2
jmp 0x4c0705
mov eax, 4
mov word [edi - 2], ax
mov eax, dword [ecx + 8]
mov dword [edi - 0x16], eax
mov eax, dword [ecx + 0xc]
mov dword [edi - 0x12], eax
mov eax, dword [ecx + 0x10]
mov dword [edi - 0xe], eax
mov eax, dword [ecx + 0x14]
mov dword [edi - 0xa], eax
mov eax, dword [ecx + 0x18]
mov dword [edi - 6], eax
jmp 0x4c0717
cmp edx, 0x10
jae 0x4c06ed
push 0x6e35c8
push 0x2a2
jmp 0x4c0705
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [edi - 0x16], eax
jmp 0x4c0717
push 0x6e35c8
push 0x299
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_src_tier1_netadr.cpp
call fcn.00536b70
add esp, 0xc
test al, al
jne 0x4c0717
int3
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x4c0610
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret