Function at 0x4c5180
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.004997b0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004a5720
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4c53d8
lea ecx, [ecx]
push 0x6e3a60
push str.country_codes
mov ecx, ebx
mov byte [ebp + 0xb], 0
call fcn.004a55f0
push eax
call fcn.004a5ff0
mov esi, eax
add esp, 8
test esi, esi
je 0x4c52e1
cmp byte [esi], 0
je 0x4c52e1
push 0
push 0
push 4
lea ecx, [ebp - 0x2c]
call fcn.004997b0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x6ef6a8
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.00545260
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x4c528d
xor edi, edi
test eax, eax
jle 0x4c5291
mov eax, dword [ebp + 0xc]
lea esp, [esp]
mov edx, dword [ebx + edi*4]
test eax, eax
mov esi, 0x6e3a60
mov ecx, 0x6e3a60
cmovne esi, eax
test edx, edx
cmovne ecx, edx
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4c5277
test dl, dl
je 0x4c5273
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4c5277
add ecx, 2
add esi, 2
test dl, dl
jne 0x4c5257
xor ecx, ecx
jmp 0x4c527c
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4c5288
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x4c5240
jmp 0x4c5291
cmp edi, 0xffffffff
je 0x4c5291
mov byte [ebp + 0xb], 1
mov esi, dword [ebp - 0x1c]
sub esi, 1
js 0x4c52bd
lea esp, [esp]
call fcn.005368d0
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 0x4c52bd
mov ebx, dword [ebp - 0x28]
jmp 0x4c52a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
call fcn.004998e0
lea ecx, [ebp - 0x2c]
call fcn.004998e0
cmp byte [ebp + 0xb], 0
mov ebx, dword [ebp - 4]
je 0x4c53c4
push 0
push 1
push str.weight
mov ecx, ebx
call fcn.004a55f0
push eax
call fcn.004a5e80
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4c53c4
jg 0x4c5322
push str.nWeight___0
push 0x179
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4c5322
int3
mov esi, dword [ebp - 0x34]
lea eax, [esi + edi]
cmp eax, esi
jg 0x4c534b
push str.__m_nTotalWeightsnWeight____m_nTotalWeights
push 0x17a
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4c5348
int3
mov esi, dword [ebp - 0x34]
test edi, edi
jle 0x4c53c4
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
add esi, edi
mov dword [ebp - 0x34], esi
cmp eax, ecx
jb 0x4c5387
mov eax, dword [ebp - 0x38]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x18]
cmp ecx, eax
jae 0x4c5387
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x485
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlvector.h
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4c5387
int3
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.0046ffa0
mov edx, dword [ebp - 0x38]
lea ecx, [edx + 1]
cmp ecx, eax
jle 0x4c53b6
lea ecx, [ebp - 0x48]
call fcn.0046ffa0
mov ecx, dword [ebp - 0x38]
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x48]
call fcn.00499a30
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.004a5880
mov ebx, eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x4c51c0
xor edi, edi
push dword [ebp - 0x34]
mov dword [ebp + 8], edi
push 0
call fcn.0054a0e0
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x38]
xor esi, esi
test eax, eax
jle 0x4c5413
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea ebx, [ebx]
mov edi, dword [ecx]
cmp edi, ebx
jge 0x4c5467
inc esi
add ecx, 8
cmp esi, eax
jl 0x4c5400
mov edi, dword [ebp + 8]
test eax, eax
je 0x4c5431
push str.0__m_vecChoices.Count__
push 0x1cd
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4c5431
int3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
call fcn.004998e0
lea ecx, [ebp - 0x48]
call fcn.004998e0
call fcn.005368d0
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 0x4c5475
sub edi, dword [edx + esi*8 - 8]
sub dword [ebp - 0x34], edi
mov ebx, eax
sub ebx, esi
dec ebx
test ebx, ebx
jle 0x4c549f
lea ecx, [edx + esi*8]
lea eax, [ebx*8]
push eax
lea eax, [ecx + 8]
push eax
push ecx
call fcn.0054f320
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x38], eax
cmp esi, eax
jge 0x4c54b5
sub dword [edx + esi*8], edi
inc esi
cmp esi, dword [ebp - 0x38]
jge 0x4c54b5
mov edx, dword [ebp - 0x44]
jmp 0x4c54a7
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.004a5850
push 0x6e3a60
push str.base_url
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004a55f0
push eax
call fcn.004a5ff0
add esp, 8
mov dword [ebp - 4], eax
mov ecx, esi
push 0
push 0
push 0x6f3290
call fcn.004a55f0
push eax
call fcn.004a5a90
add esp, 0xc
mov ecx, esi
mov bl, al
push 0
push 1
push str.weight
call fcn.004a55f0
push eax
call fcn.004a5e80
mov edi, eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov esi, 0x6e3a60
mov ecx, dword [eax]
test ecx, ecx
push dword [ebp - 8]
cmovne esi, ecx
lea ecx, [ebp - 0x30]
call fcn.0049f670
push dword [ebp - 4]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.0049f670
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.0049f670
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x4c559d
mov eax, dword [ebx + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x30]
cmp ecx, eax
jae 0x4c559d
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x485
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlvector.h
call fcn.00536d10
add esp, 0xc
test al, al
jne 0x4c559d
int3
mov edi, dword [ebx + 0x10]
mov ecx, ebx
mov esi, edi
call fcn.0046ffa0
lea ecx, [esi + 1]
cmp ecx, eax
jle 0x4c55c8
mov ecx, ebx
call fcn.0046ffa0
mov ecx, dword [ebx + 0x10]
sub ecx, eax
inc ecx
push ecx
mov ecx, ebx
call fcn.00499a30
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.005368d0
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.005368d0
push 0
push dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.005368d0
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 0x4c53da