Function at 0x1806851c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x180fd00c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ecx + 0x18]
mov ecx, dword [edi]
mov dword [esp + 0x1c], edi
cmp dword [ecx - 0xc], 0
je 0x1806855d
add ecx, 0xfffffff0
call fcn.180060dc
add eax, 0x10
mov dword [ebx], eax
jmp 0x18068aea
and dword [esp + 0x10], 0
call fcn.1804b6d3
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.1804b84e
test eax, eax
jns 0x18068588
push 0x180d97a8
mov ecx, ebx
call fcn.18005bdc
jmp 0x18068aea
lea ecx, [esp + 0x18]
call fcn.18005c3b
lea ecx, [esp + 0x60]
call fcn.1804ee42
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xfc]
mov eax, dword [eax + 0x40]
mov dword [esp + 0xa0], eax
call fcn.18044046
push eax
lea ecx, [esp + 0xc8]
call fcn.180440aa
lea ecx, [esp + 0xfc]
call fcn.18045afb
lea ecx, [esp + 0x30]
call fcn.18005c3b
mov ecx, dword [esp + 0xb8]
lea ecx, [ecx - 0x10]
call fcn.180060dc
lea esi, [eax + 0x10]
push esi
lea eax, [esp + 0x34]
push str.User_Agent:__s_r_n
push eax
call fcn.18048a20
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18003140
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xb8]
call fcn.18005b84
push str.https:__www.asus.com_geo
lea ecx, [esp + 0x14]
call fcn.18005bdc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x64]
call fcn.1804f024
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x60]
call fcn.1804f1e3
test eax, eax
js 0x180687f5
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x18068661
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], eax
jmp 0x18068666
and dword [esp + 0x14], 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x64]
call fcn.1804ff29
push eax
lea ecx, [esp + 0x1c]
call fcn.18005b84
mov ecx, dword [esp + 0x5c]
lea ecx, [ecx - 0x10]
call fcn.18003140
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.18005c3b
lea ecx, [esp + 0x34]
call fcn.18005c3b
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.1800f0ae
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
pop ecx
jmp 0x180686fa
lea eax, [esp + 0x34]
mov ecx, esi
push eax
lea eax, [esp + 0x14]
push eax
push 0x3a
pop edx
call fcn.180104a9
pop ecx
pop ecx
test al, al
je 0x180686f7
lea ecx, [esp + 0x10]
call fcn.18057cb9
push str.website_code
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18068702
add esi, 4
cmp esi, dword [esp + 0x24]
jne 0x180686c3
jmp 0x18068756
lea ecx, [esp + 0x34]
call fcn.18057cb9
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18068756
push 7
pop eax
push 6
pop edx
push edx
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call fcn.1800457f
push edi
push dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
push dword [esp + 0x3c]
push str._ASUS_GEO_URL__website_code___s__http_status_code___d__response_headers___s_
push eax
call fcn.18002ca6
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.18005b84
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.180060dc
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov esi, dword [esp + 0x20]
test esi, esi
je 0x180687d8
mov eax, dword [esp + 0x24]
cmp esi, eax
je 0x180687b8
mov edi, eax
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18003140
add esi, 4
cmp esi, edi
jne 0x1806879f
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
sub eax, esi
and eax, 0xfffffffc
push eax
push esi
call fcn.180064b3
xor eax, eax
pop ecx
pop ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x60]
call fcn.1804ef6e
lea ecx, [edi - 0x10]
jmp 0x18068ae5
push str.https:__gaming_config.asus.com:2350_api_v1_app_getcountrycode
lea ecx, [esp + 0x18]
call fcn.18005bdc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
call fcn.1804f024
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x60]
call fcn.1804f1e3
test eax, eax
js 0x1806897a
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x1806883e
mov esi, dword [eax + 0x20]
jmp 0x18068840
xor esi, esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.1804fe59
sub esp, 0x28
mov edx, eax
mov ecx, esp
push ecx
and dword [ecx + 0x24], 0
push ecx
lea ecx, [esp + 0x68]
call fcn.180694ef
add esp, 0x30
lea ecx, [esp + 0x20]
call fcn.1800e30b
push str.country_code
lea ecx, [esp + 0x3c]
call fcn.18048b31
push eax
lea ecx, [esp + 0x24]
call fcn.180691b0
cmp byte [esp + 0x20], 3
jne 0x18068960
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x24]
call fcn.1806960b
cmp dword [esp + 0x110], 0x10
lea edx, [esp + 0xfc]
jb 0x180688bc
mov edx, dword [esp + 0xfc]
push dword [esp + 0x10c]
lea ecx, [esp + 0x20]
call fcn.1800f2cd
pop ecx
push eax
mov ecx, edi
call fcn.18005b84
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18068926
push 7
pop eax
push 6
pop edx
push edx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call fcn.1800457f
push esi
push dword [edi]
push str._AC_GLOBAL_URL__country_code___s__http_status_code_
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
call fcn.18002ca6
add esp, 0x10
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.180060dc
add eax, 0x10
lea ecx, [esp + 0xfc]
mov dword [ebx], eax
call fcn.18010dfb
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.1804757d
push dword [esp + 0x38]
lea ecx, [esp + 0x44]
call fcn.1804757d
jmp 0x18068ac9
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.1804757d
push dword [esp + 0x38]
lea ecx, [esp + 0x44]
call fcn.1804757d
push str.https:__gaming_config.asus.com.cn:8045_api_v1_app_GetCountryCode
lea ecx, [esp + 0x18]
call fcn.18005bdc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
call fcn.1804f024
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x60]
call fcn.1804f1e3
test eax, eax
js 0x18068abd
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x180689c3
mov esi, dword [eax + 0x20]
jmp 0x180689c5
xor esi, esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
call fcn.1804fe59
sub esp, 0x28
mov edx, eax
mov ecx, esp
push ecx
and dword [ecx + 0x24], 0
push ecx
lea ecx, [esp + 0x68]
call fcn.180694ef
add esp, 0x30
lea ecx, [esp + 0x20]
call fcn.1800e30b
push str.country_code
lea ecx, [esp + 0x3c]
call fcn.18048b31
push eax
lea ecx, [esp + 0x24]
call fcn.180691b0
cmp byte [esp + 0x20], 3
jne 0x18068aa3
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x24]
call fcn.1806960b
cmp dword [esp + 0x110], 0x10
lea edx, [esp + 0xfc]
jb 0x18068a41
mov edx, dword [esp + 0xfc]
push dword [esp + 0x10c]
lea ecx, [esp + 0x20]
call fcn.1800f2cd
pop ecx
push eax
mov ecx, edi
call fcn.18005b84
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003140
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18068926
push 7
pop eax
push 6
pop edx
push edx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call fcn.1800457f
push esi
push dword [edi]
push str._AC_CHINA_URL__country_code___s__http_status_code__
jmp 0x18068915
push dword [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.1804757d
push dword [esp + 0x38]
lea ecx, [esp + 0x44]
call fcn.1804757d
push 0x180d97a8
mov ecx, ebx
call fcn.18005bdc
mov ecx, dword [esp + 0x30]
lea ecx, [ecx - 0x10]
call fcn.18003140
lea ecx, [esp + 0x60]
call fcn.1804ef6e
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
mov ecx, dword [esp + 0x114]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret 4