Function at 0x4c7540
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
call fcn.004a6c70
mov dword [ebp - 4], eax
test eax, eax
je 0x4c7780
mov edi, edi
push 0x6e7a86
push str.country_codes
mov ecx, eax
mov byte [ebp + 0xb], 0
call fcn.004a6b40
push eax
call fcn.004a7550
add esp, 8
test eax, eax
je 0x4c76e5
cmp byte [eax], 0
je 0x4c76e5
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], 0
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x20], 0
push ecx
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0x6f3920
call fcn.005494a0
mov eax, dword [ebp - 0x1c]
add esp, 0x18
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x4c764d
xor edi, edi
test eax, eax
jle 0x4c7651
mov eax, dword [ebp + 0xc]
mov edi, edi
mov edx, dword [ebx + edi*4]
test eax, eax
mov esi, 0x6e7a86
mov ecx, 0x6e7a86
cmovne esi, eax
test edx, edx
cmovne ecx, edx
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4c7637
test dl, dl
je 0x4c7633
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4c7637
add ecx, 2
add esi, 2
test dl, dl
jne 0x4c7617
xor ecx, ecx
jmp 0x4c763c
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4c7648
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x4c7600
jmp 0x4c7651
cmp edi, 0xffffffff
je 0x4c7651
mov byte [ebp + 0xb], 1
mov esi, dword [ebp - 0x1c]
sub esi, 1
js 0x4c767b
lea esp, [esp]
call fcn.0053aa60
push 0
push dword [ebx + esi*4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
sub esi, 1
mov ebx, dword [ebp - 0x28]
jns 0x4c7660
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
test eax, eax
js 0x4c76d8
test ebx, ebx
je 0x4c76a8
call fcn.0053aa60
push 0
push dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov eax, dword [ebp - 0x20]
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
test eax, eax
js 0x4c76d8
test ebx, ebx
je 0x4c76d1
call fcn.0053aa60
push 0
push dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
cmp byte [ebp + 0xb], 0
je 0x4c7765
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 4]
mov ecx, ebx
push 0
push 1
push str.weight
call fcn.004a6b40
push eax
call fcn.004a73e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4c7768
jg 0x4c7725
push str.nWeight___0
push 0x179
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c7725
int3
lea eax, [edi + esi]
cmp eax, edi
jg 0x4c7748
push str.__m_nTotalWeightsnWeight____m_nTotalWeights
push 0x17a
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c7748
int3
test esi, esi
jle 0x4c7768
add edi, esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edi
call fcn.0045a430
jmp 0x4c7768
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.00454fe0
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c7580
mov ebx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp + 8], eax
push edi
push 0
call fcn.0054e730
add esp, 8
xor esi, esi
test ebx, ebx
jle 0x4c77b0
mov edx, dword [ebp - 0x3c]
mov ecx, edx
jmp 0x4c77a0
mov edi, dword [ecx]
cmp edi, eax
jge 0x4c77f8
inc esi
add ecx, 8
cmp esi, ebx
jl 0x4c77a0
test ebx, ebx
je 0x4c77ce
push str.0__m_vecChoices.Count__
push 0x1cd
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlconsistenthash.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c77ce
int3
lea ecx, [ebp - 0x3c]
call fcn.0049b480
call fcn.0053aa60
push 0
push dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp + 8]
test eax, eax
pop edi
pop esi
setg al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 4]
lea ecx, [esi*8]
mov dword [ebp - 8], eax
test esi, esi
jle 0x4c780d
sub edi, dword [ecx + edx - 8]
sub dword [ebp - 0x2c], edi
mov eax, ebx
sub eax, esi
dec eax
test eax, eax
jle 0x4c782f
add ecx, edx
shl eax, 3
push eax
lea eax, [ecx + 8]
push eax
push ecx
call fcn.00553b80
mov edx, dword [ebp - 0x3c]
add esp, 0xc
dec ebx
mov dword [ebp - 0x30], ebx
cmp esi, ebx
jge 0x4c783f
sub dword [edx + esi*8], edi
inc esi
cmp esi, ebx
jl 0x4c7837
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.004a6da0
push 0x6e7a86
push str.base_url
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.004a6b40
push eax
call fcn.004a7550
add esp, 8
mov dword [ebp - 4], eax
mov ecx, esi
push 0
push 0
push 0x6f7378
call fcn.004a6b40
push eax
call fcn.004a6fd0
add esp, 0xc
mov ecx, esi
mov bl, al
push 0
push 1
push str.weight
call fcn.004a6b40
push eax
call fcn.004a73e0
mov edi, eax
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov esi, 0x6e7a86
mov ecx, dword [eax]
test ecx, ecx
push dword [ebp - 8]
cmovne esi, ecx
lea ecx, [ebp - 0x54]
call fcn.004a0550
push dword [ebp - 4]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0
call fcn.004a0550
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x40]
push esi
mov byte [ebp - 0x4c], bl
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
call fcn.004a0550
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x54]
mov ecx, dword [ebx]
cmp eax, ecx
jb 0x4c7926
mov eax, dword [ebx + 0xc]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
lea ecx, [ebp - 0x54]
cmp ecx, eax
jae 0x4c7926
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x49f
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlvector.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c7926
int3
mov eax, dword [ebx + 0xc]
lea esi, [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [ebp - 4], eax
inc eax
cmp eax, ecx
jle 0x4c79f0
mov edi, dword [ebp - 4]
sub edi, ecx
inc edi
test edi, edi
jg 0x4c7964
push 0x6e9164
push 0x1e5
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c7964
int3
mov edx, dword [ebx + 8]
test edx, edx
jns 0x4c7989
push 0x6e7be4
push 0x1ea
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4c79f0
int3
mov ecx, dword [ebx + 4]
push 0x18
lea eax, [ecx + edi]
push eax
push edx
push ecx
call fcn.0049adc0
add esp, 0x10
mov dword [ebx + 4], eax
cmp dword [ebx], 0
je 0x4c79c8
call fcn.0053aa60
push 0
push 0x1f9
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebx + 4]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push dword [ebx]
jmp 0x4c79ea
call fcn.0053aa60
push 0
push 0
push 0x1fd
mov ecx, dword [eax]
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov edx, dword [ecx + 8]
mov ecx, dword [ebx + 4]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
mov ecx, eax
call edx
mov dword [ebx], eax
mov eax, dword [ebp - 4]
inc dword [esi]
lea ecx, [eax + eax*2]
mov eax, dword [ebx]
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x54]
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
mov dword [ecx + 4], eax
mov al, byte [ebp - 0x4c]
mov dword [ebp - 0x50], 0
mov byte [ecx + 8], al
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x40], 0
call fcn.0053aa60
push 0
push dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.0053aa60
push 0
push dword [ebp - 0x50]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.0053aa60
push 0
push dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
inc dword [ebp + 8]
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
jmp 0x4c7785