Function at 0x414f08
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 0x414f29
mov dword [esp], edi
call fcn.0041045c
mov esi, eax
jmp 0x414f2b
xor esi, esi
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x423ba8]
test eax, eax
je 0x414f4d
xor ebx, ebx
cmp eax, 0x423b7c
jne 0x414f80
xor ebx, ebx
cmp eax, 0x423b7c
sete byte [esp + 0x18]
mov dword [esp + 4], 0x2c
mov dword [esp], 1
call fcn.0040ddb8
mov dword [0x423ba8], eax
test eax, eax
je 0x41502f
mov cl, byte [esp + 0x18]
mov bl, cl
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x414f9b
mov dword [esp], ecx
call fcn.0040dde4
mov eax, dword [0x423ba8]
mov dword [eax + 0x24], 0
movzx ebp, word [esp + 0x230]
test esi, esi
je 0x414fcf
cmp byte [esi], 0
je 0x414fde
mov dword [esp], edi
mov dword [esp + 4], str.en_US
call fcn.00410538
test eax, eax
je 0x41504b
mov dword [esi], 0x554e45
jmp 0x41512e
test ebx, ebx
je 0x41506e
mov ecx, eax
jmp 0x4152fe
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.004186a8
mov ecx, dword [0x423ba8]
mov dword [ecx], eax
mov dword [ecx + 8], 0
jmp 0x415321
mov dword [esp], 0xe
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov dword [esp], esi
call fcn.0040dde4
jmp 0x41542a
mov dword [esp], edi
mov dword [esp + 4], str.en_GB
call fcn.00410538
test eax, eax
je 0x4150f8
mov dword [esi], 0x474e45
jmp 0x41512e
movsx ebx, bp
test bl, 4
jne 0x41508f
test bl, 0x10
jne 0x4150a0
test bl, 0x20
jne 0x4150b5
test bl, 1
jne 0x4150ca
test bl, 2
jne 0x4150e3
jmp 0x41537e
mov edx, str.LC_MONETARY
mov ecx, eax
call fcn.00415928
test bl, 0x10
je 0x41507b
mov ecx, dword [0x423ba8]
mov edx, str.LC_NUMERIC
call fcn.00415928
test bl, 0x20
je 0x415080
mov ecx, dword [0x423ba8]
mov edx, str.LC_TIME
call fcn.00415928
test bl, 1
je 0x415085
mov ecx, dword [0x423ba8]
mov edx, str.LC_COLLATE
call fcn.00415928
test bl, 2
je 0x41537e
mov ecx, dword [0x423ba8]
mov edx, str.LC_CTYPE
call fcn.00415928
jmp 0x41537e
mov dword [esp], edi
mov dword [esp + 4], str.fr_FR
call fcn.00410538
test eax, eax
je 0x415114
mov dword [esi], 0x415246
jmp 0x41512e
mov dword [esp], edi
mov dword [esp + 4], str.de_DE
call fcn.00410538
test eax, eax
je 0x415151
mov dword [esi], 0x554544
mov dword [esp], edi
mov dword [esp + 4], 0x2e
call fcn.00410968
test eax, eax
je 0x415151
lea ecx, [esi + 3]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00410a08
mov dword [esp], edi
mov dword [esp + 4], 0x423957
call fcn.004109b8
test eax, eax
je 0x4152f8
cmp byte [esi], 0x4c
jne 0x4152d2
cmp byte [esi + 1], 0x43
jne 0x4152d2
cmp byte [esi + 2], 0x5f
jne 0x4152d2
mov dword [esp], esi
call fcn.0040dde4
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov eax, dword [0x423ba8]
mov dword [esp + 0x18], eax
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
lea esi, [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.004108ef
xor eax, eax
xor ebx, ebx
jmp 0x415228
mov dword [esp], esi
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.004108ef
xor eax, eax
inc edi
jmp 0x415228
mov dword [esp + 4], esi
lea eax, [esp + 0x11c]
mov dword [esp], eax
call fcn.00410a08
jmp 0x4151e8
movzx ecx, byte [edi]
cmp cl, 0xa
je 0x415208
cmp cl, 0x3d
je 0x415248
test cl, cl
je 0x4154ae
mov byte [esp + eax + 0x1c], cl
inc eax
inc edi
jmp 0x415228
mov dword [esp], esi
mov dword [esp + 4], str.LC_CTYPE
call fcn.004109b8
mov ecx, ebx
or ebx, 2
test eax, eax
cmovne bx, cx
mov dword [esp], esi
mov dword [esp + 4], str.LC_TIME
call fcn.004109b8
mov ebp, ebx
or ebp, 0x20
test eax, eax
cmovne bp, bx
mov dword [esp], esi
mov dword [esp + 4], str.LC_NUMERIC
call fcn.004109b8
mov ebx, ebp
or ebx, 0x10
test eax, eax
cmovne bx, bp
mov dword [esp], esi
mov dword [esp + 4], str.LC_MONETARY
call fcn.004109b8
mov ebp, ebx
or ebp, 4
test eax, eax
cmovne bp, bx
mov dword [esp], esi
mov dword [esp + 4], str.LC_COLLATE
call fcn.004109b8
xor ebx, ebx
test eax, eax
sete bl
or ebx, ebp
jmp 0x4151e8
mov ecx, dword [0x423ba8]
mov dword [ecx + 8], 0
mov edx, esi
call fcn.00415ac8
mov edi, eax
test edi, edi
je 0x415449
mov ecx, dword [0x423ba8]
jmp 0x415321
mov ecx, dword [0x423ba8]
call fcn.00415558
mov eax, dword [0x423ba8]
mov dword [esp], eax
call fcn.0040dde4
mov dword [0x423ba8], 0x423b7c
xor edi, edi
mov ecx, 0x423b7c
mov dword [ecx + 4], edi
mov dword [esp], esi
call fcn.0040dde4
mov eax, dword [0x423ba8]
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 [0x423ba8]
jne 0x41535a
cmp dword [eax + 8], 0
je 0x4153ec
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x423ba8]
cmp dword [ecx + 8], 0
je 0x4153a0
mov dword [0x423908], 1
call fcn.004176bc
mov eax, dword [0x423ba8]
mov esi, dword [eax + 0x24]
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
jmp 0x41543c
call fcn.00415558
mov ecx, dword [0x423ba8]
movsx edx, bp
call fcn.00415d98
test eax, eax
je 0x4153f5
mov eax, dword [0x423ba8]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0041a844
test eax, eax
je 0x41547e
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], 0x20000106
call sub.KERNEL32.DLL_SetLastError
jmp 0x415437
mov dword [esp], 0x20000103
jmp 0x4153fc
mov dword [esp], 0x20000102
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
test ebx, ebx
je 0x41542a
mov ecx, dword [0x423ba8]
call fcn.00415558
mov eax, dword [0x423ba8]
mov dword [esp], eax
call fcn.0040dde4
mov dword [0x423ba8], 0x423b7c
mov eax, dword [0x427270]
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 0x415464
mov eax, dword [0x423ba8]
mov dword [esp], eax
call fcn.0040dde4
mov dword [0x423ba8], 0x423b7c
mov eax, dword [0x427270]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], esi
call fcn.0040dde4
jmp 0x41543a
mov eax, dword [0x423ba8]
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 0x4153ce
mov eax, dword [esp + 0x1c]
mov dword [0x423908], eax
jmp 0x41537e
lea edx, [esp + 0x11c]
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.00415ac8
mov dword [esi + 4], eax
mov dword [esp], eax
mov dword [esp + 4], 1
call sub.KERNEL32.DLL_IsValidLocale
sub esp, 8
test eax, eax
jne 0x4154e0
cmp dword [esi + 8], 0
je 0x41551d
mov eax, dword [0x423ba8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x423ba8]
call fcn.00415558
mov ecx, dword [0x423ba8]
movsx edx, bx
call fcn.00415d98
test eax, eax
jne 0x41537e
mov dword [esp], 0x20000102
jmp 0x415524
mov dword [esp], 0x20000103
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
jmp 0x41542a