Function at 0x4c38e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x48]
push 8
call fcn.00498ef0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004a4d70
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4c3b38
lea ecx, [ecx]
push 0x6cca60
push str.country_codes
mov ecx, ebx
mov byte [ebp + 0xb], 0
call fcn.004a4c40
push eax
call fcn.004a5640
mov esi, eax
add esp, 8
test esi, esi
je 0x4c3a41
cmp byte [esi], 0
je 0x4c3a41
push 0
push 0
push 4
lea ecx, [ebp - 0x2c]
call fcn.00498ef0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x6db840
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.00530560
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x4c39ed
xor edi, edi
test eax, eax
jle 0x4c39f1
mov eax, dword [ebp + 0xc]
lea esp, [esp]
mov edx, dword [ebx + edi*4]
test eax, eax
mov esi, 0x6cca60
mov ecx, 0x6cca60
cmovne esi, eax
test edx, edx
cmovne ecx, edx
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4c39d7
test dl, dl
je 0x4c39d3
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4c39d7
add ecx, 2
add esi, 2
test dl, dl
jne 0x4c39b7
xor ecx, ecx
jmp 0x4c39dc
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4c39e8
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x4c39a0
jmp 0x4c39f1
cmp edi, 0xffffffff
je 0x4c39f1
mov byte [ebp + 0xb], 1
mov esi, dword [ebp - 0x1c]
sub esi, 1
js 0x4c3a1d
lea esp, [esp]
call fcn.00521c10
push 0
push dword [ebx + esi*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
sub esi, 1
js 0x4c3a1d
mov ebx, dword [ebp - 0x28]
jmp 0x4c3a00
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
call fcn.00499020
lea ecx, [ebp - 0x2c]
call fcn.00499020
cmp byte [ebp + 0xb], 0
mov ebx, dword [ebp - 4]
je 0x4c3b24
push 0
push 1
push str.weight
mov ecx, ebx
call fcn.004a4c40
push eax
call fcn.004a54d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4c3b24
jg 0x4c3a82
push str.nWeight___0
push 0x179
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4c3a82
int3
mov esi, dword [ebp - 0x34]
lea eax, [esi + edi]
cmp eax, esi
jg 0x4c3aab
push str.__m_nTotalWeightsnWeight____m_nTotalWeights
push 0x17a
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4c3aa8
int3
mov esi, dword [ebp - 0x34]
test edi, edi
jle 0x4c3b24
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
add esi, edi
mov dword [ebp - 0x34], esi
cmp eax, ecx
jb 0x4c3ae7
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x18]
cmp ecx, eax
jae 0x4c3ae7
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x485
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlvector.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4c3ae7
int3
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.0046fbd0
mov edx, dword [ebp - 0x38]
lea ecx, [edx + 1]
cmp ecx, eax
jle 0x4c3b16
lea ecx, [ebp - 0x48]
call fcn.0046fbd0
mov ecx, dword [ebp - 0x38]
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x48]
call fcn.00499170
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
inc edx
mov dword [ebp - 0x38], edx
mov dword [eax + edi*8], esi
mov dword [eax + edi*8 + 4], ebx
mov ecx, ebx
call fcn.004a4ed0
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x4c3920
xor edi, edi
push dword [ebp - 0x34]
mov dword [ebp + 8], edi
push 0
call fcn.005352d0
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x38]
xor esi, esi
test eax, eax
jle 0x4c3b73
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea ebx, [ebx]
mov edi, dword [ecx]
cmp edi, ebx
jge 0x4c3bc7
inc esi
add ecx, 8
cmp esi, eax
jl 0x4c3b60
mov edi, dword [ebp + 8]
test eax, eax
je 0x4c3b91
push str.0__m_vecChoices.Count__
push 0x1cd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4c3b91
int3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
call fcn.00499020
lea ecx, [ebp - 0x48]
call fcn.00499020
call fcn.00521c10
push 0
push dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
test edi, edi
pop edi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ecx + 4]
mov dword [ebp - 8], ecx
test esi, esi
jle 0x4c3bd5
sub edi, dword [edx + esi*8 - 8]
sub dword [ebp - 0x34], edi
mov ebx, eax
sub ebx, esi
dec ebx
test ebx, ebx
jle 0x4c3bff
lea ecx, [edx + esi*8]
lea eax, [ebx*8]
push eax
lea eax, [ecx + 8]
push eax
push ecx
call fcn.0053a4d0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x38], eax
cmp esi, eax
jge 0x4c3c15
sub dword [edx + esi*8], edi
inc esi
cmp esi, dword [ebp - 0x38]
jge 0x4c3c15
mov edx, dword [ebp - 0x44]
jmp 0x4c3c07
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.004a4ea0
push 0x6cca60
push str.base_url
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004a4c40
push eax
call fcn.004a5640
add esp, 8
mov dword [ebp - 4], eax
mov ecx, esi
push 0
push 0
push 0x6dc178
call fcn.004a4c40
push eax
call fcn.004a50e0
add esp, 0xc
mov ecx, esi
mov bl, al
push 0
push 1
push str.weight
call fcn.004a4c40
push eax
call fcn.004a54d0
mov edi, eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov esi, 0x6cca60
mov ecx, dword [eax]
test ecx, ecx
push dword [ebp - 8]
cmovne esi, ecx
lea ecx, [ebp - 0x30]
call fcn.0049ec40
push dword [ebp - 4]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.0049ec40
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x1c]
push esi
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
call fcn.0049ec40
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x4c3cfd
mov eax, dword [ebx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x30]
cmp ecx, eax
jae 0x4c3cfd
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x485
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlvector.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4c3cfd
int3
mov edi, dword [ebx + 0x10]
mov ecx, ebx
mov esi, edi
call fcn.0046fbd0
lea ecx, [esi + 1]
cmp ecx, eax
jle 0x4c3d28
mov ecx, ebx
call fcn.0046fbd0
mov ecx, dword [ebx + 0x10]
sub ecx, eax
inc ecx
push ecx
mov ecx, ebx
call fcn.00499170
mov esi, dword [ebx + 0x10]
lea eax, [esi + 1]
mov dword [ebx + 0x10], eax
lea ecx, [edi + edi*2]
mov eax, dword [ebx + 4]
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
mov dword [ecx + 4], eax
mov al, byte [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov byte [ecx + 8], al
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x1c], 0
call fcn.00521c10
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.00521c10
push 0
push dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.00521c10
push 0
push dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edi, dword [ebp + 8]
inc edi
jmp 0x4c3b3a