Function at 0x5298fc
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 0x52991d
mov dword [esp], edi
call fcn.00524280
mov esi, eax
jmp 0x52991f
xor esi, esi
mov eax, dword [0x562490]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0x5450ec]
test eax, eax
je 0x529941
xor ebx, ebx
cmp eax, 0x5450c0
jne 0x529974
xor ebx, ebx
cmp eax, 0x5450c0
sete byte [esp + 0x18]
mov dword [esp + 4], 0x2c
mov dword [esp], 1
call fcn.00523bcc
mov dword [0x5450ec], eax
test eax, eax
je 0x529a23
mov cl, byte [esp + 0x18]
mov bl, cl
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x52998f
mov dword [esp], ecx
call fcn.00523bf8
mov eax, dword [0x5450ec]
mov dword [eax + 0x24], 0
movzx ebp, word [esp + 0x230]
test esi, esi
je 0x5299c3
cmp byte [esi], 0
je 0x5299d2
mov dword [esp], edi
mov dword [esp + 4], str.en_US
call fcn.00524320
test eax, eax
je 0x529a3f
mov dword [esi], 0x554e45
jmp 0x529b22
test ebx, ebx
je 0x529a62
mov ecx, eax
jmp 0x529cf2
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.0052d09c
mov ecx, dword [0x5450ec]
mov dword [ecx], eax
mov dword [ecx + 8], 0
jmp 0x529d15
mov dword [esp], 0xe
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov dword [esp], esi
call fcn.00523bf8
jmp 0x529e1e
mov dword [esp], edi
mov dword [esp + 4], str.en_GB
call fcn.00524320
test eax, eax
je 0x529aec
mov dword [esi], 0x474e45
jmp 0x529b22
movsx ebx, bp
test bl, 4
jne 0x529a83
test bl, 0x10
jne 0x529a94
test bl, 0x20
jne 0x529aa9
test bl, 1
jne 0x529abe
test bl, 2
jne 0x529ad7
jmp 0x529d72
mov edx, str.LC_MONETARY
mov ecx, eax
call fcn.0052a31c
test bl, 0x10
je 0x529a6f
mov ecx, dword [0x5450ec]
mov edx, str.LC_NUMERIC
call fcn.0052a31c
test bl, 0x20
je 0x529a74
mov ecx, dword [0x5450ec]
mov edx, str.LC_TIME
call fcn.0052a31c
test bl, 1
je 0x529a79
mov ecx, dword [0x5450ec]
mov edx, str.LC_COLLATE
call fcn.0052a31c
test bl, 2
je 0x529d72
mov ecx, dword [0x5450ec]
mov edx, str.LC_CTYPE
call fcn.0052a31c
jmp 0x529d72
mov dword [esp], edi
mov dword [esp + 4], str.fr_FR
call fcn.00524320
test eax, eax
je 0x529b08
mov dword [esi], 0x415246
jmp 0x529b22
mov dword [esp], edi
mov dword [esp + 4], str.de_DE
call fcn.00524320
test eax, eax
je 0x529b45
mov dword [esi], 0x554544
mov dword [esp], edi
mov dword [esp + 4], 0x2e
call fcn.005247a0
test eax, eax
je 0x529b45
lea ecx, [esi + 3]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00524840
mov dword [esp], edi
mov dword [esp + 4], 0x544e9b
call fcn.005247f0
test eax, eax
je 0x529cec
cmp byte [esi], 0x4c
jne 0x529cc6
cmp byte [esi + 1], 0x43
jne 0x529cc6
cmp byte [esi + 2], 0x5f
jne 0x529cc6
mov dword [esp], esi
call fcn.00523bf8
mov eax, dword [0x562490]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov eax, dword [0x5450ec]
mov dword [esp + 0x18], eax
mov eax, dword [0x562490]
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.00524727
xor eax, eax
xor ebx, ebx
jmp 0x529c1c
mov dword [esp], esi
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.00524727
xor eax, eax
inc edi
jmp 0x529c1c
mov dword [esp + 4], esi
lea eax, [esp + 0x11c]
mov dword [esp], eax
call fcn.00524840
jmp 0x529bdc
movzx ecx, byte [edi]
cmp cl, 0xa
je 0x529bfc
cmp cl, 0x3d
je 0x529c3c
test cl, cl
je 0x529ea2
mov byte [esp + eax + 0x1c], cl
inc eax
inc edi
jmp 0x529c1c
mov dword [esp], esi
mov dword [esp + 4], str.LC_CTYPE
call fcn.005247f0
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.005247f0
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.005247f0
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.005247f0
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.005247f0
xor ebx, ebx
test eax, eax
sete bl
or ebx, ebp
jmp 0x529bdc
mov ecx, dword [0x5450ec]
mov dword [ecx + 8], 0
mov edx, esi
call fcn.0052a4bc
mov edi, eax
test edi, edi
je 0x529e3d
mov ecx, dword [0x5450ec]
jmp 0x529d15
mov ecx, dword [0x5450ec]
call fcn.00529f4c
mov eax, dword [0x5450ec]
mov dword [esp], eax
call fcn.00523bf8
mov dword [0x5450ec], 0x5450c0
xor edi, edi
mov ecx, 0x5450c0
mov dword [ecx + 4], edi
mov dword [esp], esi
call fcn.00523bf8
mov eax, dword [0x5450ec]
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 [0x5450ec]
jne 0x529d4e
cmp dword [eax + 8], 0
je 0x529de0
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x5450ec]
cmp dword [ecx + 8], 0
je 0x529d94
mov dword [0x544e4c], 1
call fcn.0052c0b0
mov eax, dword [0x5450ec]
mov esi, dword [eax + 0x24]
mov eax, dword [0x562490]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
jmp 0x529e30
call fcn.00529f4c
mov ecx, dword [0x5450ec]
movsx edx, bp
call fcn.0052a78c
test eax, eax
je 0x529de9
mov eax, dword [0x5450ec]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0052f3b0
test eax, eax
je 0x529e72
mov eax, dword [0x562490]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], 0x20000106
call sub.KERNEL32.DLL_SetLastError
jmp 0x529e2b
mov dword [esp], 0x20000103
jmp 0x529df0
mov dword [esp], 0x20000102
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
test ebx, ebx
je 0x529e1e
mov ecx, dword [0x5450ec]
call fcn.00529f4c
mov eax, dword [0x5450ec]
mov dword [esp], eax
call fcn.00523bf8
mov dword [0x5450ec], 0x5450c0
mov eax, dword [0x562490]
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 0x529e58
mov eax, dword [0x5450ec]
mov dword [esp], eax
call fcn.00523bf8
mov dword [0x5450ec], 0x5450c0
mov eax, dword [0x562490]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], esi
call fcn.00523bf8
jmp 0x529e2e
mov eax, dword [0x5450ec]
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 0x529dc2
mov eax, dword [esp + 0x1c]
mov dword [0x544e4c], eax
jmp 0x529d72
lea edx, [esp + 0x11c]
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0052a4bc
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 0x529ed4
cmp dword [esi + 8], 0
je 0x529f11
mov eax, dword [0x5450ec]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0x5450ec]
call fcn.00529f4c
mov ecx, dword [0x5450ec]
movsx edx, bx
call fcn.0052a78c
test eax, eax
jne 0x529d72
mov dword [esp], 0x20000102
jmp 0x529f18
mov dword [esp], 0x20000103
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
jmp 0x529e1e