Function at 0x410fe0
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xc04]
sub esp, 0xc04
push 0xffffffffffffffff
push 0x520510
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0xc00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.004290e0
test eax, eax
je 0x411275
test esi, esi
je 0x411040
mov dword [esi], 0
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
push 0x400
lea ecx, [ebp]
push ecx
call fcn.004290e0
mov ebx, str.support_all
mov edx, str.ERP_LANG_LIST
mov ecx, eax
call fcn.00487fa0
test eax, eax
jne 0x41109f
push str.TRUE
lea edx, [ebp]
push edx
call fcn.004f9f1e
add esp, 8
test eax, eax
jne 0x41109f
test esi, esi
je 0x411095
mov dword [esi], 1
mov eax, 1
jmp 0x411275
push 0x200
xor edi, edi
push edi
lea eax, [ebp + 0xa00]
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp + 0xa00]
push ecx
call fcn.00410aa0
push 0x200
push edi
cmp eax, edi
je 0x4111c3
lea edx, [ebp + 0xa00]
push edx
call fcn.004fd670
add esp, 0xc
lea ecx, [ebp + 0xa00]
call fcn.00410980
cmp eax, edi
jne 0x4111a0
lea eax, [ebp + 0xa00]
lea edx, [eax + 2]
jmp 0x411100
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411100
sub eax, edx
sar eax, 1
je 0x4111a0
push 0x200
push edi
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
lea ecx, [ebp + 0xa00]
push ecx
push str.ERP_LANG_LIST
push str._s___icountry__s__
lea edx, [ebp + 0x800]
call fcn.00418d80
add esp, 0x18
call fcn.004290e0
push eax
lea edx, [ebp + 0x800]
call fcn.00488160
mov ecx, 0x649e50
test al, al
je 0x41117b
lea edx, [ebp + 0xa00]
push edx
push str.Erp_Countyry_____Current_country_code:__s_
call fcn.004918f0
add esp, 8
cmp esi, edi
jmp 0x41108d
lea eax, [ebp + 0xa00]
push eax
push str.No_Erp_Country_____Current_country_code:__s_
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x1c], edi
push 0x5815cc
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004fd5a3
push str.Fail_to_GetCountryCode____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x20], edi
push 0x5815cc
lea edx, [ebp - 0x20]
push edx
call fcn.004fd5a3
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
lea ecx, [ebp + 0xa00]
push ecx
push str.ERP_LANG_LIST
push 0x5352d4
lea edx, [ebp + 0x800]
call fcn.00418d80
add esp, 0x18
call fcn.004290e0
push eax
lea edx, [ebp + 0x800]
call fcn.00488160
mov ecx, 0x649e50
test al, al
je 0x411223
lea edx, [ebp + 0xa00]
push edx
push str.Erp_Countyry_____Current_geo_code:__s_
call fcn.004918f0
add esp, 8
cmp esi, edi
jmp 0x41108d
lea eax, [ebp + 0xa00]
push eax
push str.No_Erp_Countyry_____Current_geo_code:__s_
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x18], edi
push 0x5815cc
lea ecx, [ebp - 0x18]
push ecx
call fcn.004fd5a3
cmp dword [ebp - 0x28], 0
jne 0x411252
mov byte [ebp - 0x11], 0
push str.Fail_in_CCmdOperator::FNT_IS_ERP_COUNTRY____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x411271
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc00]
xor ecx, ebp
call fcn.004fa103
add ebp, 0xc04
mov esp, ebp
pop ebp
ret