Function at 0x41baf8
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov edi, dword [esp + 0x234]
test edi, edi
je 0x41bb19
mov dword [esp], edi
call fcn.0041731c
mov esi, eax
jmp 0x41bb1b
xor esi, esi
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x42ab70]
test eax, eax
je 0x41bb3d
xor ebx, ebx
cmp eax, 0x42ab44
jne 0x41bb70
xor ebx, ebx
cmp eax, 0x42ab44
sete byte [esp + 0x18]
mov dword [esp + 4], 0x2c
mov dword [esp], 1
call fcn.00414c70
mov dword [0x42ab70], eax
test eax, eax
je 0x41bc1f
mov cl, byte [esp + 0x18]
mov bl, cl
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41bb8b
mov dword [esp], ecx
call fcn.00414c9c
mov eax, dword [0x42ab70]
mov dword [eax + 0x24], 0
movzx ebp, word [esp + 0x230]
test esi, esi
je 0x41bbbf
cmp byte [esi], 0
je 0x41bbce
mov dword [esp], edi
mov dword [esp + 4], str.en_US
call fcn.004173b4
test eax, eax
je 0x41bc3b
mov dword [esi], 0x554e45
jmp 0x41bd1e
test ebx, ebx
je 0x41bc5e
mov ecx, eax
jmp 0x41beec
call sub.KERNEL32.DLL_GetUserDefaultLCID
mov edi, eax
lea ebp, [esp + 0x11c]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 0xc], 7
mov dword [esp + 4], 0xb
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
movzx ebp, word [esp + 0x230]
call fcn.0041f2f0
mov ecx, dword [0x42ab70]
mov dword [ecx], eax
mov dword [ecx + 8], 0
jmp 0x41bf0f
mov dword [esp], 0xe
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov dword [esp], esi
call fcn.00414c9c
jmp 0x41c018
mov dword [esp], edi
mov dword [esp + 4], str.en_GB
call fcn.004173b4
test eax, eax
je 0x41bce8
mov dword [esi], 0x474e45
jmp 0x41bd1e
movsx ebx, bp
test bl, 4
jne 0x41bc7f
test bl, 0x10
jne 0x41bc90
test bl, 0x20
jne 0x41bca5
test bl, 1
jne 0x41bcba
test bl, 2
jne 0x41bcd3
jmp 0x41bf6c
mov edx, str.LC_MONETARY
mov ecx, eax
call fcn.0041c518
test bl, 0x10
je 0x41bc6b
mov ecx, dword [0x42ab70]
mov edx, str.LC_NUMERIC
call fcn.0041c518
test bl, 0x20
je 0x41bc70
mov ecx, dword [0x42ab70]
mov edx, str.LC_TIME
call fcn.0041c518
test bl, 1
je 0x41bc75
mov ecx, dword [0x42ab70]
mov edx, str.LC_COLLATE
call fcn.0041c518
test bl, 2
je 0x41bf6c
mov ecx, dword [0x42ab70]
mov edx, str.LC_CTYPE
call fcn.0041c518
jmp 0x41bf6c
mov dword [esp], edi
mov dword [esp + 4], str.fr_FR
call fcn.004173b4
test eax, eax
je 0x41bd04
mov dword [esi], 0x415246
jmp 0x41bd1e
mov dword [esp], edi
mov dword [esp + 4], str.de_DE
call fcn.004173b4
test eax, eax
je 0x41bd41
mov dword [esi], 0x554544
mov dword [esp], edi
mov dword [esp + 4], 0x2e
call fcn.004177d8
test eax, eax
je 0x41bd41
lea ecx, [esi + 3]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00417878
mov dword [esp], edi
mov dword [esp + 4], 0x42a91f
call fcn.00417828
test eax, eax
je 0x41bee6
cmp byte [esi], 0x4c
jne 0x41bec0
cmp byte [esi + 1], 0x43
jne 0x41bec0
cmp byte [esi + 2], 0x5f
jne 0x41bec0
mov dword [esp], esi
call fcn.00414c9c
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov eax, dword [0x42ab70]
mov dword [esp + 0x18], eax
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
lea ebp, [esp + 0x1c]
mov dword [esp], ebp
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.0041775f
xor eax, eax
xor esi, esi
jmp 0x41be06
mov dword [esp + 4], ebp
lea eax, [esp + 0x11c]
mov dword [esp], eax
call fcn.00417878
mov dword [esp], ebp
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.0041775f
xor eax, eax
inc edi
movzx ecx, byte [edi]
cmp cl, 0xa
je 0x41bdd8
cmp cl, 0x3d
je 0x41be28
test cl, cl
je 0x41c09c
mov byte [esp + eax + 0x1c], cl
inc eax
inc edi
jmp 0x41be06
mov dword [esp], ebp
mov dword [esp + 4], str.LC_CTYPE
call fcn.00417828
test eax, eax
jne 0x41be3f
or esi, 2
mov dword [esp], ebp
mov dword [esp + 4], str.LC_TIME
call fcn.00417828
test eax, eax
jne 0x41be56
or esi, 0x20
mov dword [esp], ebp
mov dword [esp + 4], str.LC_NUMERIC
call fcn.00417828
test eax, eax
jne 0x41be6d
or esi, 0x10
mov dword [esp], ebp
mov dword [esp + 4], str.LC_MONETARY
call fcn.00417828
test eax, eax
jne 0x41be84
or esi, 4
mov dword [esp], ebp
mov dword [esp + 4], str.LC_COLLATE
call fcn.00417828
xor ebx, ebx
test eax, eax
sete bl
or ebx, esi
mov dword [esp], ebp
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.0041775f
xor eax, eax
inc edi
mov si, bx
jmp 0x41be06
mov ecx, dword [0x42ab70]
mov dword [ecx + 8], 0
mov edx, esi
call fcn.0041c6b8
mov edi, eax
test edi, edi
je 0x41c037
mov ecx, dword [0x42ab70]
jmp 0x41bf0f
mov ecx, dword [0x42ab70]
call fcn.0041c148
mov eax, dword [0x42ab70]
mov dword [esp], eax
call fcn.00414c9c
mov dword [0x42ab70], 0x42ab44
xor edi, edi
mov ecx, 0x42ab44
mov dword [ecx + 4], edi
mov dword [esp], esi
call fcn.00414c9c
mov eax, dword [0x42ab70]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov dword [esp + 4], 1
call sub.KERNEL32.DLL_IsValidLocale
sub esp, 8
test eax, eax
mov eax, dword [0x42ab70]
jne 0x41bf48
cmp dword [eax + 8], 0
je 0x41bfda
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x42ab70]
cmp dword [ecx + 8], 0
je 0x41bf8e
mov dword [0x42a8d0], 1
call fcn.0041e2dc
mov eax, dword [0x42ab70]
mov esi, dword [eax + 0x24]
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
jmp 0x41c02a
call fcn.0041c148
mov ecx, dword [0x42ab70]
movsx edx, bp
call fcn.0041c9b8
test eax, eax
je 0x41bfe3
mov eax, dword [0x42ab70]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004214a8
test eax, eax
je 0x41c06c
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], 0x20000106
call sub.KERNEL32.DLL_SetLastError
jmp 0x41c025
mov dword [esp], 0x20000103
jmp 0x41bfea
mov dword [esp], 0x20000102
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
test ebx, ebx
je 0x41c018
mov ecx, dword [0x42ab70]
call fcn.0041c148
mov eax, dword [0x42ab70]
mov dword [esp], eax
call fcn.00414c9c
mov dword [0x42ab70], 0x42ab44
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
xor esi, esi
mov eax, esi
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x41c052
mov eax, dword [0x42ab70]
mov dword [esp], eax
call fcn.00414c9c
mov dword [0x42ab70], 0x42ab44
mov eax, dword [0x4317e4]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], esi
call fcn.00414c9c
jmp 0x41c028
mov eax, dword [0x42ab70]
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.DLL_GetCPInfo
sub esp, 8
test eax, eax
je 0x41bfbc
mov eax, dword [esp + 0x1c]
mov dword [0x42a8d0], eax
jmp 0x41bf6c
lea edx, [esp + 0x11c]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0041c6b8
mov dword [edi + 4], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call sub.KERNEL32.DLL_IsValidLocale
sub esp, 8
test eax, eax
jne 0x41c0ce
cmp dword [edi + 8], 0
je 0x41c10b
mov eax, dword [0x42ab70]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x42ab70]
call fcn.0041c148
mov ecx, dword [0x42ab70]
movsx edx, si
call fcn.0041c9b8
test eax, eax
jne 0x41bf6c
mov dword [esp], 0x20000102
jmp 0x41c112
mov dword [esp], 0x20000103
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
jmp 0x41c018