Function at 0x408572
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00408791
push 8
pop edi
push edi
mov esi, 0x43c9e0
mov ebx, eax
push esi
push 0x1e
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b2f9
mov esi, 0x80
lea eax, [ebp - 0x104]
push esi
push eax
push 0x23
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x408602
mov ecx, 0x402218
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408787
test dx, dx
je 0x4085fb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408787
add eax, 4
add ecx, 4
test dx, dx
jne 0x4085d1
xor eax, eax
mov dword [0x42e0c4], eax
and dword [0x42e58c], 0
lea eax, [ebp - 0x104]
push esi
push eax
push 0x21
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x40863e
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x41b331
and dword [0x42e58c], eax
mov dword [0x42e588], 0x402204
push esi
lea eax, [ebp - 0x104]
mov dword [0x42e584], 2
push eax
push 0x24
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
push 0x31
pop ecx
test eax, eax
je 0x408673
cmp word [ebp - 0x104], cx
jne 0x408673
mov dword [0x42e584], 4
push edi
mov esi, 0x43c9d0
push esi
push 0x1d
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b371
push 0x20
pop esi
push esi
mov edi, 0x43c970
push edi
push 0x31
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3a9
push esi
mov edi, 0x43c930
push edi
push 0x32
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b3e1
push esi
mov edi, 0x43c8f0
push edi
push 0x33
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b419
push esi
mov edi, 0x43c8b0
push edi
push 0x34
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b451
push esi
mov edi, 0x43c870
push edi
push 0x35
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b489
push esi
mov edi, 0x43c830
push edi
push 0x36
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4c1
push esi
mov edi, 0x43c7f0
push edi
push 0x37
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b4f9
push 8
pop edi
push edi
mov esi, 0x43c9c0
push esi
push 0xe
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b52f
push edi
mov esi, 0x43c9b0
push esi
push 0xf
push ebx
call dword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
test eax, eax
je 0x41b567
push 0x4021fc
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret
sbb eax, eax
or eax, 1
jmp 0x4085fd
mov edx, 0x403994
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b320
movzx eax, word [edx + esi]
test ax, ax
je 0x41b320
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b302
test ecx, ecx
jne 0x41b327
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x4085ac
sub eax, 1
je 0x41b358
sub eax, 1
jne 0x40863e
mov dword [0x42e58c], 2
mov dword [0x42e588], 0x4039ac
jmp 0x40863e
mov dword [0x42e58c], 1
mov dword [0x42e588], 0x403998
jmp 0x40863e
mov edx, 0x4037e0
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b398
movzx eax, word [edx + esi]
test ax, ax
je 0x41b398
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b37a
test ecx, ecx
jne 0x41b39f
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40868b
mov edx, 0x4039c0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b3d0
movzx eax, word [edx + edi]
test ax, ax
je 0x41b3d0
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b3b2
test ecx, ecx
jne 0x41b3d7
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086a6
mov edx, 0x4039c8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b408
movzx eax, word [edx + edi]
test ax, ax
je 0x41b408
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b3ea
test ecx, ecx
jne 0x41b40f
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086be
mov edx, 0x4039d0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b440
movzx eax, word [edx + edi]
test ax, ax
je 0x41b440
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b422
test ecx, ecx
jne 0x41b447
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086d6
mov edx, 0x4039d8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b478
movzx eax, word [edx + edi]
test ax, ax
je 0x41b478
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b45a
test ecx, ecx
jne 0x41b47f
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x4086ee
mov edx, 0x4039e0
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b4b0
movzx eax, word [edx + edi]
test ax, ax
je 0x41b4b0
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b492
test ecx, ecx
jne 0x41b4b7
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408706
mov edx, 0x4039e8
mov ecx, esi
sub edx, edi
lea eax, [ecx + 0x7fffffde]
test eax, eax
je 0x41b4e8
movzx eax, word [edx + edi]
test ax, ax
je 0x41b4e8
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x41b4ca
test ecx, ecx
jne 0x41b4ef
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x40871e
mov ecx, 0x4039f0
sub ecx, edi
lea eax, [esi + 0x7fffffde]
test eax, eax
je 0x41b51e
movzx eax, word [ecx + edi]
test ax, ax
je 0x41b51e
mov word [edi], ax
add edi, 2
sub esi, 1
jne 0x41b500
test esi, esi
jne 0x41b525
sub edi, 2
xor eax, eax
mov word [edi], ax
jmp 0x408736
mov edx, 0x402434
mov ecx, edi
sub edx, esi
lea eax, [ecx + 0x7ffffff6]
test eax, eax
je 0x41b556
movzx eax, word [edx + esi]
test ax, ax
je 0x41b556
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x41b538
test ecx, ecx
jne 0x41b55d
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x408751
mov ecx, 0x4039f8
sub ecx, esi
lea eax, [edi + 0x7ffffff6]
test eax, eax
je 0x41b58c
movzx eax, word [ecx + esi]
test ax, ax
je 0x41b58c
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x41b56e
test edi, edi
jne 0x41b593
sub esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x408769