Function at 0x474050
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
lea ebp, [esp - 0x1a04]
mov eax, 0x1a04
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x523c93
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1a00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x20], edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
lea edx, [eax + 1]
mov ecx, dword [edi + 0x14508]
call fcn.0047f9f0
mov esi, eax
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x34]
push eax
push 0x400
lea ebx, [ebp]
mov edx, str.SET_ALTITUDE_LIST
mov ecx, esi
call fcn.004880c0
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4740f4
push 0x55f640
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x38], ebx
push 0x5814b0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004fd5a3
push 0
push 0
push 0x303
mov edx, dword [edi + 0x14480]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
lea edi, [ebp]
mov dword [ebp - 0x1c], ebx
jmp 0x474120
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x34]
jae 0x47438f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x474131
sub eax, edx
sar eax, 1
je 0x47438f
push 0x800
push ebx
lea ecx, [ebp + 0x1000]
push ecx
call fcn.004fd670
push 0x200
push ebx
lea edx, [ebp + 0x1800]
push edx
call fcn.004fd670
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
mov dword [ebp - 0x24], ebx
push edi
push str.country_abbr_:___s_
mov ecx, 0x649e50
call fcn.004918f0
push edi
push str.SET_ALTITUDE_LIST
push 0x5352d4
lea edx, [ebp + 0x1000]
call fcn.00404380
add esp, 0x38
push pe_nt_image_headers32
lea ecx, [ebp + 0x1800]
push ecx
mov ebx, str.country_name
lea edx, [ebp + 0x1000]
mov ecx, esi
call fcn.00487fa0
test eax, eax
jne 0x47436c
lea eax, [ebp + 0x1800]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4741d7
sub eax, edx
sar eax, 1
je 0x47436c
push 0x10
call fcn.004da969
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
xor ecx, ecx
cmp eax, ecx
je 0x474211
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x14], eax
jmp 0x474214
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], cl
cmp dword [ebp - 0x14], ecx
je 0x47436c
lea edx, [ebp - 0x24]
push edx
push 0x400
lea ebx, [ebp + 0x800]
lea edx, [ebp + 0x1000]
mov ecx, esi
call fcn.004880c0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47425a
push str.Fail_CViewCityDlg::LoadCityData______
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
jmp 0x47436c
xor esi, esi
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x24]
jge 0x474313
push 0x800
push 0
lea eax, [ebp + 0x1000]
push eax
call fcn.004fd670
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.004fd670
push esi
push str.CITY
push edi
push str.SET_ALTITUDE_LIST
push str._s__s__s__d_
lea edx, [ebp + 0x1000]
push edx
call fcn.004fa487
add esp, 0x30
push 0
push 0x400
lea ebx, [ebp + 0x800]
lea edx, [ebp + 0x1000]
mov ecx, dword [ebp - 0x28]
call fcn.00487e80
test eax, eax
jne 0x47430b
mov eax, ebx
push eax
push str.city_:___s_
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov edx, ebx
lea eax, [ebp - 0x5c]
call fcn.00419e00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
push ecx
mov esi, dword [ebp - 0x14]
call fcn.004165c0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x5c]
call fcn.00418f90
mov esi, dword [ebp - 0x30]
add esi, 1
jmp 0x47425c
lea edx, [ebp + 0x1800]
push edx
push 0
push 0x143
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14480]
push ecx
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x474369
mov edx, dword [ebp - 0x14]
push edx
push ebx
push 0x151
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14480]
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
test ax, ax
je 0x474369
mov esi, edi
call fcn.00474400
test al, al
je 0x474369
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x28]
add dword [ebp - 0x1c], 1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474375
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 + 2]
xor ebx, ebx
jmp 0x474120
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x14460]
mov eax, dword [ebp - 0x2c]
call fcn.00405b80
mov ecx, esi
call fcn.004745a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a00]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1a04
mov esp, ebp
pop ebp
ret