Function at 0x80dcb4
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 0x80dcd5
mov dword [esp], edi
call fcn.00807070
mov esi, eax
jmp 0x80dcd7
xor esi, esi
mov eax, dword [0xb7b5f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_EnterCriticalSection
sub esp, 4
mov eax, dword [0xad4278]
test eax, eax
je 0x80dcf9
xor ebx, ebx
cmp eax, 0xad424c
jne 0x80dd2c
xor ebx, ebx
cmp eax, 0xad424c
sete byte [esp + 0x18]
mov dword [esp + 4], 0x2c
mov dword [esp], 1
call fcn.00806b04
mov dword [0xad4278], eax
test eax, eax
je 0x80dddb
mov cl, byte [esp + 0x18]
mov bl, cl
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x80dd47
mov dword [esp], ecx
call fcn.00806b30
mov eax, dword [0xad4278]
mov dword [eax + 0x24], 0
movzx ebp, word [esp + 0x230]
test esi, esi
je 0x80dd7b
cmp byte [esi], 0
je 0x80dd8a
mov dword [esp], edi
mov dword [esp + 4], str.en_US
call fcn.0080729c
test eax, eax
je 0x80ddf7
mov dword [esi], 0x554e45
jmp 0x80deda
test ebx, ebx
je 0x80de1a
mov ecx, eax
jmp 0x80e0a8
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.00811690
mov ecx, dword [0xad4278]
mov dword [ecx], eax
mov dword [ecx + 8], 0
jmp 0x80e0cb
mov dword [esp], 0xe
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov dword [esp], esi
call fcn.00806b30
jmp 0x80e1d4
mov dword [esp], edi
mov dword [esp + 4], str.en_GB
call fcn.0080729c
test eax, eax
je 0x80dea4
mov dword [esi], 0x474e45
jmp 0x80deda
movsx ebx, bp
test bl, 4
jne 0x80de3b
test bl, 0x10
jne 0x80de4c
test bl, 0x20
jne 0x80de61
test bl, 1
jne 0x80de76
test bl, 2
jne 0x80de8f
jmp 0x80e128
mov edx, str.LC_MONETARY
mov ecx, eax
call fcn.0080e6d4
test bl, 0x10
je 0x80de27
mov ecx, dword [0xad4278]
mov edx, str.LC_NUMERIC
call fcn.0080e6d4
test bl, 0x20
je 0x80de2c
mov ecx, dword [0xad4278]
mov edx, str.LC_TIME
call fcn.0080e6d4
test bl, 1
je 0x80de31
mov ecx, dword [0xad4278]
mov edx, str.LC_COLLATE
call fcn.0080e6d4
test bl, 2
je 0x80e128
mov ecx, dword [0xad4278]
mov edx, str.LC_CTYPE
call fcn.0080e6d4
jmp 0x80e128
mov dword [esp], edi
mov dword [esp + 4], str.fr_FR
call fcn.0080729c
test eax, eax
je 0x80dec0
mov dword [esi], 0x415246
jmp 0x80deda
mov dword [esp], edi
mov dword [esp + 4], str.de_DE
call fcn.0080729c
test eax, eax
je 0x80defd
mov dword [esi], 0x554544
mov dword [esp], edi
mov dword [esp + 4], 0x2e
call fcn.00807804
test eax, eax
je 0x80defd
lea ecx, [esi + 3]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.008078a4
mov dword [esp], edi
mov dword [esp + 4], 0xad4027
call fcn.00807854
test eax, eax
je 0x80e0a2
cmp byte [esi], 0x4c
jne 0x80e07c
cmp byte [esi + 1], 0x43
jne 0x80e07c
cmp byte [esi + 2], 0x5f
jne 0x80e07c
mov dword [esp], esi
call fcn.00806b30
mov eax, dword [0xb7b5f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov eax, dword [0xad4278]
mov dword [esp + 0x18], eax
mov eax, dword [0xb7b5f8]
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.0080778b
xor eax, eax
xor esi, esi
jmp 0x80dfc2
mov dword [esp + 4], ebp
lea eax, [esp + 0x11c]
mov dword [esp], eax
call fcn.008078a4
mov dword [esp], ebp
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.0080778b
xor eax, eax
inc edi
movzx ecx, byte [edi]
cmp cl, 0xa
je 0x80df94
cmp cl, 0x3d
je 0x80dfe4
test cl, cl
je 0x80e258
mov byte [esp + eax + 0x1c], cl
inc eax
inc edi
jmp 0x80dfc2
mov dword [esp], ebp
mov dword [esp + 4], str.LC_CTYPE
call fcn.00807854
test eax, eax
jne 0x80dffb
or esi, 2
mov dword [esp], ebp
mov dword [esp + 4], str.LC_TIME
call fcn.00807854
test eax, eax
jne 0x80e012
or esi, 0x20
mov dword [esp], ebp
mov dword [esp + 4], str.LC_NUMERIC
call fcn.00807854
test eax, eax
jne 0x80e029
or esi, 0x10
mov dword [esp], ebp
mov dword [esp + 4], str.LC_MONETARY
call fcn.00807854
test eax, eax
jne 0x80e040
or esi, 4
mov dword [esp], ebp
mov dword [esp + 4], str.LC_COLLATE
call fcn.00807854
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.0080778b
xor eax, eax
inc edi
mov si, bx
jmp 0x80dfc2
mov ecx, dword [0xad4278]
mov dword [ecx + 8], 0
mov edx, esi
call fcn.0080e874
mov edi, eax
test edi, edi
je 0x80e1f3
mov ecx, dword [0xad4278]
jmp 0x80e0cb
mov ecx, dword [0xad4278]
call fcn.0080e304
mov eax, dword [0xad4278]
mov dword [esp], eax
call fcn.00806b30
mov dword [0xad4278], 0xad424c
xor edi, edi
mov ecx, 0xad424c
mov dword [ecx + 4], edi
mov dword [esp], esi
call fcn.00806b30
mov eax, dword [0xad4278]
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 [0xad4278]
jne 0x80e104
cmp dword [eax + 8], 0
je 0x80e196
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0xad4278]
cmp dword [ecx + 8], 0
je 0x80e14a
mov dword [0xad3fd8], 1
call fcn.00810498
mov eax, dword [0xad4278]
mov esi, dword [eax + 0x24]
mov eax, dword [0xb7b5f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
jmp 0x80e1e6
call fcn.0080e304
mov ecx, dword [0xad4278]
movsx edx, bp
call fcn.0080eb74
test eax, eax
je 0x80e19f
mov eax, dword [0xad4278]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.008140cc
test eax, eax
je 0x80e228
mov eax, dword [0xb7b5f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], 0x20000106
call sub.KERNEL32.DLL_SetLastError
jmp 0x80e1e1
mov dword [esp], 0x20000103
jmp 0x80e1a6
mov dword [esp], 0x20000102
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
test ebx, ebx
je 0x80e1d4
mov ecx, dword [0xad4278]
call fcn.0080e304
mov eax, dword [0xad4278]
mov dword [esp], eax
call fcn.00806b30
mov dword [0xad4278], 0xad424c
mov eax, dword [0xb7b5f8]
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 0x80e20e
mov eax, dword [0xad4278]
mov dword [esp], eax
call fcn.00806b30
mov dword [0xad4278], 0xad424c
mov eax, dword [0xb7b5f8]
mov dword [esp], eax
call sub.KERNEL32.DLL_LeaveCriticalSection
sub esp, 4
mov dword [esp], esi
call fcn.00806b30
jmp 0x80e1e4
mov eax, dword [0xad4278]
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 0x80e178
mov eax, dword [esp + 0x1c]
mov dword [0xad3fd8], eax
jmp 0x80e128
lea edx, [esp + 0x11c]
mov edi, dword [esp + 0x18]
mov ecx, edi
call fcn.0080e874
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 0x80e28a
cmp dword [edi + 8], 0
je 0x80e2c7
mov eax, dword [0xad4278]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.DLL_SetThreadLocale
sub esp, 4
mov ecx, dword [0xad4278]
call fcn.0080e304
mov ecx, dword [0xad4278]
movsx edx, si
call fcn.0080eb74
test eax, eax
jne 0x80e128
mov dword [esp], 0x20000102
jmp 0x80e2ce
mov dword [esp], 0x20000103
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
jmp 0x80e1d4