Function at 0x4c50d0
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.004997e0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004a5770
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4c5328
lea ecx, [ecx]
push 0x6e0a80
push str.country_codes
mov ecx, ebx
mov byte [ebp + 0xb], 0
call fcn.004a5640
push eax
call fcn.004a6040
mov esi, eax
add esp, 8
test esi, esi
je 0x4c5231
cmp byte [esi], 0
je 0x4c5231
push 0
push 0
push 4
lea ecx, [ebp - 0x2c]
call fcn.004997e0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x6ec7c8
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.00542960
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x4c51dd
xor edi, edi
test eax, eax
jle 0x4c51e1
mov eax, dword [ebp + 0xc]
lea esp, [esp]
mov edx, dword [ebx + edi*4]
test eax, eax
mov esi, 0x6e0a80
mov ecx, 0x6e0a80
cmovne esi, eax
test edx, edx
cmovne ecx, edx
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4c51c7
test dl, dl
je 0x4c51c3
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4c51c7
add ecx, 2
add esi, 2
test dl, dl
jne 0x4c51a7
xor ecx, ecx
jmp 0x4c51cc
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4c51d8
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x4c5190
jmp 0x4c51e1
cmp edi, 0xffffffff
je 0x4c51e1
mov byte [ebp + 0xb], 1
mov esi, dword [ebp - 0x1c]
sub esi, 1
js 0x4c520d
lea esp, [esp]
call fcn.00534050
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 0x4c520d
mov ebx, dword [ebp - 0x28]
jmp 0x4c51f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
call fcn.00499910
lea ecx, [ebp - 0x2c]
call fcn.00499910
cmp byte [ebp + 0xb], 0
mov ebx, dword [ebp - 4]
je 0x4c5314
push 0
push 1
push str.weight
mov ecx, ebx
call fcn.004a5640
push eax
call fcn.004a5ed0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4c5314
jg 0x4c5272
push str.nWeight___0
push 0x179
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00534490
add esp, 0xc
test al, al
jne 0x4c5272
int3
mov esi, dword [ebp - 0x34]
lea eax, [esi + edi]
cmp eax, esi
jg 0x4c529b
push str.__m_nTotalWeightsnWeight____m_nTotalWeights
push 0x17a
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00534490
add esp, 0xc
test al, al
jne 0x4c5298
int3
mov esi, dword [ebp - 0x34]
test edi, edi
jle 0x4c5314
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
add esi, edi
mov dword [ebp - 0x34], esi
cmp eax, ecx
jb 0x4c52d7
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x18]
cmp ecx, eax
jae 0x4c52d7
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.00534490
add esp, 0xc
test al, al
jne 0x4c52d7
int3
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.0046ffe0
mov edx, dword [ebp - 0x38]
lea ecx, [edx + 1]
cmp ecx, eax
jle 0x4c5306
lea ecx, [ebp - 0x48]
call fcn.0046ffe0
mov ecx, dword [ebp - 0x38]
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x48]
call fcn.00499a60
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.004a58d0
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x4c5110
xor edi, edi
push dword [ebp - 0x34]
mov dword [ebp + 8], edi
push 0
call fcn.005477e0
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x38]
xor esi, esi
test eax, eax
jle 0x4c5363
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea ebx, [ebx]
mov edi, dword [ecx]
cmp edi, ebx
jge 0x4c53b7
inc esi
add ecx, 8
cmp esi, eax
jl 0x4c5350
mov edi, dword [ebp + 8]
test eax, eax
je 0x4c5381
push str.0__m_vecChoices.Count__
push 0x1cd
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00534490
add esp, 0xc
test al, al
jne 0x4c5381
int3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
call fcn.00499910
lea ecx, [ebp - 0x48]
call fcn.00499910
call fcn.00534050
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 0x4c53c5
sub edi, dword [edx + esi*8 - 8]
sub dword [ebp - 0x34], edi
mov ebx, eax
sub ebx, esi
dec ebx
test ebx, ebx
jle 0x4c53ef
lea ecx, [edx + esi*8]
lea eax, [ebx*8]
push eax
lea eax, [ecx + 8]
push eax
push ecx
call fcn.0054ca20
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x38], eax
cmp esi, eax
jge 0x4c5405
sub dword [edx + esi*8], edi
inc esi
cmp esi, dword [ebp - 0x38]
jge 0x4c5405
mov edx, dword [ebp - 0x44]
jmp 0x4c53f7
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.004a58a0
push 0x6e0a80
push str.base_url
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004a5640
push eax
call fcn.004a6040
add esp, 8
mov dword [ebp - 4], eax
mov ecx, esi
push 0
push 0
push 0x6f0428
call fcn.004a5640
push eax
call fcn.004a5ae0
add esp, 0xc
mov ecx, esi
mov bl, al
push 0
push 1
push str.weight
call fcn.004a5640
push eax
call fcn.004a5ed0
mov edi, eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov esi, 0x6e0a80
mov ecx, dword [eax]
test ecx, ecx
push dword [ebp - 8]
cmovne esi, ecx
lea ecx, [ebp - 0x30]
call fcn.0049f6a0
push dword [ebp - 4]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.0049f6a0
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.0049f6a0
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x4c54ed
mov eax, dword [ebx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x30]
cmp ecx, eax
jae 0x4c54ed
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.00534490
add esp, 0xc
test al, al
jne 0x4c54ed
int3
mov edi, dword [ebx + 0x10]
mov ecx, ebx
mov esi, edi
call fcn.0046ffe0
lea ecx, [esi + 1]
cmp ecx, eax
jle 0x4c5518
mov ecx, ebx
call fcn.0046ffe0
mov ecx, dword [ebx + 0x10]
sub ecx, eax
inc ecx
push ecx
mov ecx, ebx
call fcn.00499a60
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.00534050
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.00534050
push 0
push dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.00534050
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 0x4c532a