Function at 0x413630
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00413854
push 8
push 0x42f82c
mov esi, eax
push 0x1e
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f4cb
push 0x80
lea eax, [ebp - 0x104]
push eax
push 0x23
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x4136c1
mov eax, 0x40242c
lea ecx, [ebp - 0x104]
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41384a
test dx, dx
je 0x4136ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41384a
add ecx, 4
add eax, 4
test dx, dx
jne 0x413690
xor eax, eax
mov dword [0x42d0cc], eax
push 0x80
lea eax, [ebp - 0x104]
mov dword [0x42d548], 0
push eax
push 0x21
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x413703
movzx eax, word [ebp - 0x104]
sub eax, 0x30
jne 0x41f50d
mov dword [0x42d548], eax
mov dword [0x42f808], 0x402418
push 0x80
lea eax, [ebp - 0x104]
mov dword [0x42f630], 2
push eax
push 0x24
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41373a
cmp word [ebp - 0x104], 0x31
jne 0x41373a
mov dword [0x42f630], 4
push 8
push 0x42f81c
push 0x1d
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f54d
push 0x20
push 0x42f7b8
push 0x31
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f58f
push 0x20
push 0x42f778
push 0x32
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f5d1
push 0x20
push 0x42f738
push 0x33
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f613
push 0x20
push 0x42f6f8
push 0x34
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f655
push 0x20
push 0x42f6b8
push 0x35
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f697
push 0x20
push 0x42f678
push 0x36
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f6d9
push 0x20
push 0x42f638
push 0x37
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f71b
push 8
push 0x42f80c
push 0xe
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f75d
push 8
push 0x42f7f8
push 0xf
push esi
call dword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
test eax, eax
je 0x41f79f
push 0x402410
push 0
call dword [sym.imp.msvcrt.dll_setlocale]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00416ce0
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
jmp 0x4136bc
mov ecx, 0x42f82c
mov edi, 0x403660
mov edx, 8
sub edi, ecx
lea eax, [edx + 0x7ffffff6]
test eax, eax
je 0x41f4fc
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f4fc
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f4dc
jmp 0x41f500
test edx, edx
jne 0x41f503
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x413666
sub eax, 1
je 0x41f534
sub eax, 1
jne 0x413703
mov dword [0x42d548], 2
mov dword [0x42f808], 0x403678
jmp 0x413703
mov dword [0x42d548], 1
mov dword [0x42f808], 0x403664
jmp 0x413703
mov ecx, 0x42f81c
mov edi, 0x403560
mov edx, 8
sub edi, ecx
lea eax, [edx + 0x7ffffff6]
test eax, eax
je 0x41f57e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f57e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f55e
jmp 0x41f582
test edx, edx
jne 0x41f585
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x413752
mov ecx, 0x42f7b8
mov edi, 0x40368c
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f5c0
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f5c0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f5a0
jmp 0x41f5c4
test edx, edx
jne 0x41f5c7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x41376a
mov ecx, 0x42f778
mov edi, 0x403694
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f602
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f602
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f5e2
jmp 0x41f606
test edx, edx
jne 0x41f609
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x413782
mov ecx, 0x42f738
mov edi, 0x40369c
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f644
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f644
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f624
jmp 0x41f648
test edx, edx
jne 0x41f64b
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x41379a
mov ecx, 0x42f6f8
mov edi, 0x4036a4
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f686
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f686
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f666
jmp 0x41f68a
test edx, edx
jne 0x41f68d
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x4137b2
mov ecx, 0x42f6b8
mov edi, 0x4036ac
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f6c8
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f6c8
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f6a8
jmp 0x41f6cc
test edx, edx
jne 0x41f6cf
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x4137ca
mov ecx, 0x42f678
mov edi, 0x4036b4
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f70a
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f70a
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f6ea
jmp 0x41f70e
test edx, edx
jne 0x41f711
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x4137e2
mov ecx, 0x42f638
mov edi, 0x4036bc
mov edx, 0x20
sub edi, ecx
lea eax, [edx + 0x7fffffde]
test eax, eax
je 0x41f74c
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f74c
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f72c
jmp 0x41f750
test edx, edx
jne 0x41f753
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x4137fa
mov ecx, 0x42f80c
mov edi, 0x402358
mov edx, 8
sub edi, ecx
lea eax, [edx + 0x7ffffff6]
test eax, eax
je 0x41f78e
movzx eax, word [edi + ecx]
test ax, ax
je 0x41f78e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f76e
jmp 0x41f792
test edx, edx
jne 0x41f795
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x413812
mov ecx, 0x42f7f8
mov esi, 0x4036c4
mov edx, 8
sub esi, ecx
lea eax, [edx + 0x7ffffff6]
test eax, eax
je 0x41f7d0
movzx eax, word [esi + ecx]
test ax, ax
je 0x41f7d0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x41f7b0
jmp 0x41f7d4
test edx, edx
jne 0x41f7d7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
jmp 0x41382a