Function at 0x1001f8dd
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1020f334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
or eax, 0xffffffff
mov dword [ebp - 0x15c], edx
push edi
push 0xaa
mov dword [ebp - 0x150], eax
xor ebx, ebx
mov dword [ebp - 0x154], eax
mov esi, ecx
mov dword [ebp - 0x158], eax
lea eax, [ebp - 0x148]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jne 0x1001f935
mov eax, 0x8ff00003
jmp 0x1001fc43
mov ecx, 0xc00
cmp dword [esi + 8], ecx
jne 0x1001f958
push ebx
push 0x55
lea eax, [ebp - 0x148]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
lea edi, [ebp - 0x148]
jmp 0x1001f95b
mov edi, dword [esi + 4]
xor eax, eax
lea edx, [ebp - 0x18]
push ecx
mov word [ebp - 0x64], ax
mov word [ebp - 0x84], ax
mov word [ebp - 0x98], ax
mov word [ebp - 0x2c], ax
mov word [ebp - 0x40], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push ecx
lea eax, [ebp - 0x2c]
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, edi
call fcn.10020a13
mov byte [ebp - 0x14c], al
xor eax, eax
cmp ax, word [ebp - 0x18]
jne 0x1001f9d4
push 9
lea eax, [ebp - 0x18]
push eax
push 0x59
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x1001f9d4
mov eax, dword [ebp - 0x14c]
xor ecx, ecx
cmp cx, word [ebp - 0x18]
push 1
movzx eax, al
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x14c], eax
xor eax, eax
cmp ax, word [ebp - 0x2c]
jne 0x1001fa06
push 9
lea eax, [ebp - 0x2c]
push eax
push 0x5a
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
mov eax, dword [ebp - 0x14c]
je 0x1001fa0c
xor ecx, ecx
movzx eax, al
cmp cx, word [ebp - 0x2c]
push 1
pop edi
cmovne eax, edi
jmp 0x1001fa0f
mov eax, dword [ebp - 0x14c]
xor edi, edi
inc edi
test al, al
je 0x1001fc14
lea ecx, [ebp - 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fa1d
sub ecx, edx
sar ecx, 1
je 0x1001fa3f
push ebx
push ebx
push edi
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x18]
call fcn.10020c68
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x18]
cmp eax, dword [esi]
push 0xffffffffffffffff
pop ecx
cmove eax, ecx
lea ecx, [edx + 2]
mov dword [ebp - 0x150], eax
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1001fa59
sub edx, ecx
sar edx, 1
je 0x1001fad5
lea ecx, [ebp - 0x40]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fa70
sub ecx, edi
sar ecx, 1
je 0x1001fad5
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor edi, edi
lea eax, [ebp - 0x64]
inc edi
push edi
push 0x101a35e4
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea ecx, [ebp - 0x40]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fab0
sub ecx, edx
lea eax, [ebp - 0x40]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x64]
push 0x12
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
jmp 0x1001fad8
xor edi, edi
inc edi
lea ecx, [ebp - 0x64]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fade
sub ecx, edx
sar ecx, 1
je 0x1001fb00
push ebx
push ebx
push edi
lea edx, [ebp - 0x154]
lea ecx, [ebp - 0x64]
call fcn.10020c68
mov edx, dword [ebp - 0x154]
lea ecx, [ebp - 0x2c]
mov edi, dword [esi]
cmp edx, edi
push 0xffffffffffffffff
pop eax
cmove edx, eax
lea eax, [ecx + 2]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x14c], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fb22
sub ecx, dword [ebp - 0x14c]
sar ecx, 1
je 0x1001fb98
push 7
push str.x_none_
lea eax, [ebp - 0x84]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea ecx, [ebp - 0x2c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1001fb56
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x84]
push 0x10
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x84]
push ebx
push ebx
push ebx
call fcn.10020c68
mov edi, dword [esi]
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 0x158]
cmp eax, edi
push 0xffffffffffffffff
pop edi
cmove eax, edi
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x150], edi
jne 0x1001fbbc
cmp eax, edi
jne 0x1001fbbc
cmp edx, edi
je 0x1001fc0b
mov eax, dword [esi + 0x10]
cmp edx, edi
mov ecx, dword [ebp - 0x150]
cmovne ecx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x158]
mov dword [ecx + 0x14], eax
mov ecx, edi
cmp dword [ebp - 0x154], edi
mov eax, dword [ebp - 0x150]
cmovne eax, dword [ebp - 0x154]
cmp dword [esi + 4], ebx
cmovne ecx, eax
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov dword [eax + 4], edi
mov eax, dword [esi + 0x10]
mov dword [eax + 8], edi
mov eax, dword [esi + 0x10]
mov dword [eax + 0xc], edi
or dword [esi + 0x20], 0x1f8
jmp 0x1001fc17
or edi, 0xffffffff
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x15c]
mov eax, dword [eax + ecx*4]
cmp eax, edi
je 0x1001fc32
test eax, eax
je 0x1001fc32
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1001fc37
xor eax, eax
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, 0x80004005
test bl, bl
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100042bb
mov esp, ebp
pop ebp
ret