Function at 0x6534c546
Capabilities:
Get geographical location
Get thread local storage value

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
call fcn.6534c40d
mov eax, dword [section..data]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
mov esi, eax
test esi, esi
je 0x65369eef
xor eax, eax
test eax, eax
jne 0x65369f0c
mov edx, dword [esi + 0xd0]
mov eax, dword [0x653c301c]
mov ebx, dword [esp + 0x4c]
add esi, 0xd0
cmp edx, eax
jne 0x6534c921
cmp dword [esi + 8], ebx
jne 0x6534c921
mov ebp, dword [esi + 4]
mov edi, dword [esp + 0x48]
cmp ebp, edi
jne 0x6534c5b5
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword [ecx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp edi, 0x400
jne 0x6534c910
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, eax
cmp ebp, edi
je 0x6534c5a5
cmp edi, 0x409
je 0x6534c92a
mov eax, ebx
lea ebp, [esi + 0x14]
push 0xa
or al, 0x14
push ebp
push eax
push edi
call fcn.65353a82
dec eax
test eax, eax
jle 0x65369f43
cmp eax, 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
jne 0x6534c63a
lea ecx, [esp + 0x1c]
push eax
push ecx
push eax
push ebp
push 0x400100
push edi
call fcn.65353d08
lea edx, [esp + 0x30]
push 1
push edx
push 1
push ebp
push 0x800200
push edi
call fcn.65353d08
mov ax, word [esp + 0x1c]
cmp ax, word [esp + 0x30]
je 0x65369f59
mov edx, ebx
lea ecx, [esp + 0x14]
push 4
or edx, 0xe
push ecx
push edx
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369f65
mov ax, word [esp + 0x14]
mov word [esi + 0x28], ax
mov edx, ebx
lea ecx, [esp + 0x14]
push 4
or edx, 0x16
push ecx
push edx
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369f70
mov cx, word [esp + 0x14]
mov word [esi + 0x32], cx
mov eax, ebx
lea edx, [esp + 0x14]
push 4
or al, 0x51
push edx
push eax
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369f7d
mov cx, word [esp + 0x14]
mov word [esi + 0x30], cx
mov eax, ebx
lea edx, [esp + 0x14]
push 4
or al, 0x17
push edx
push eax
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369f88
mov cx, word [esp + 0x14]
mov word [esi + 0x34], cx
mov eax, ebx
lea edx, [esp + 0x14]
push 4
or al, 0xf
push edx
push eax
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369f93
mov cx, word [esp + 0x14]
mov word [esi + 0x2a], cx
mov dx, word [esi + 0x2a]
cmp dx, word [esi + 0x28]
je 0x65369f9e
mov bp, word [esi + 0x2a]
push 8
push ebp
push edi
call fcn.653532d6
test eax, eax
mov eax, 0x20
jne 0x6534c716
mov eax, ebp
mov word [esi + 0x2c], ax
mov ecx, ebx
lea eax, [esp + 0x12]
push 2
or ecx, 0x12
push eax
push ecx
push edi
mov byte [esp + 0x22], 0x31
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [esp + 0x12]
xor edx, edx
cmp al, 0x30
mov ecx, ebx
setne dl
lea eax, [esp + 0x14]
push 4
or ecx, 0x10
push eax
push ecx
push edi
mov word [esi + 0x2e], dx
call fcn.65353a82
cmp eax, 1
mov ebp, 3
jle 0x65369fa9
lea edx, [esp + 0x14]
push edx
call fcn.65353ac4
add esp, 4
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0x2000
mov ecx, ebx
lea eax, [esp + 0x14]
push 4
or ecx, 0x18
push eax
push ecx
push edi
call fcn.65353a82
cmp eax, 1
jle 0x65369fb8
lea edx, [esp + 0x14]
push edx
call fcn.65353ac4
add esp, 4
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 0x2000
mov ecx, ebx
lea eax, [esp + 0x14]
push 4
or ecx, 0x11
push eax
push ecx
push edi
call fcn.65353a82
mov ebp, 1
cmp eax, ebp
jle 0x65369fc7
lea edx, [esp + 0x14]
push edx
call fcn.65353ac4
add esp, 4
mov dword [esi + 0x40], eax
mov ecx, ebx
lea eax, [esp + 0x14]
push 4
or ecx, 0x19
push eax
push ecx
push edi
call fcn.65353a82
cmp eax, ebp
jle 0x65369fd3
lea edx, [esp + 0x14]
push edx
call fcn.65353ac4
add esp, 4
mov dword [esi + 0x4c], eax
mov ecx, ebx
lea eax, [esp + 0x14]
push 4
or ecx, 0x1010
push eax
push ecx
push edi
call fcn.65353a82
cmp eax, ebp
jle 0x65369fdf
lea edx, [esp + 0x14]
push edx
call fcn.65353ac4
add esp, 4
cmp eax, 5
jae 0x6534c847
mov eax, dword [eax*4 + 0x6534c940]
mov ecx, dword [esi + 0x3c]
or ecx, eax
mov dword [esi + 0x3c], ecx
mov edx, ebx
lea ecx, [esp + 0x14]
push 4
or edx, 0x1c
push ecx
push edx
push edi
call fcn.65353a82
cmp eax, ebp
jle 0x65369fe6
lea eax, [esp + 0x14]
push eax
call fcn.65353ac4
add esp, 4
cmp eax, 0x10
jae 0x6534c883
mov ecx, dword [eax*4 + 0x6534c968]
mov eax, dword [esi + 0x48]
or eax, ecx
mov dword [esi + 0x48], eax
mov eax, ebx
lea edx, [esp + 0x14]
push 4
or al, 0x1b
push edx
push eax
push edi
call fcn.65353a82
cmp eax, ebp
jle 0x65369fed
lea ecx, [esp + 0x14]
push ecx
call fcn.65353ac4
add esp, 4
cmp eax, 4
jae 0x6534c8be
mov edx, dword [eax*4 + 0x6534c958]
mov eax, dword [esi + 0x48]
or eax, edx
mov dword [esi + 0x48], eax
cmp word [esi + 0x2e], 0
je 0x6534c8d5
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x3c]
or ecx, ebp
or eax, ebp
mov dword [esi + 0x48], ecx
mov dword [esi + 0x3c], eax
mov ecx, dword [esi + 0x48]
mov eax, ecx
and eax, 2
je 0x65369ff4
test eax, eax
je 0x6536a003
mov eax, dword [esi + 0x3c]
test al, 2
jne 0x6536a013
and eax, 0x3c
or eax, ecx
mov dword [esi + 0x48], eax
mov eax, dword [0x653c301c]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi], eax
jmp 0x6534c5a5
cmp edi, 0x800
jne 0x6534c5cd
jmp 0x65369f17
mov edi, dword [esp + 0x48]
jmp 0x6534c5cd
cmp ebx, 0x80000000
jne 0x6534c5d9
jmp 0x65369f2e
call fcn.65353daf
test eax, eax
jl 0x6534c5ad
mov ecx, dword [section..data]
push ecx
call edi
mov esi, eax
jmp 0x6534c56a
jge 0x6534c574
jmp 0x6534c5ad
cmp edi, 0x400
je 0x6534c5c1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
jmp 0x6534c5c7
mov ecx, dword [esp + 0x50]
mov esi, 0x65379340
xor eax, eax
mov dword [ecx], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov eax, 1
mov word [ebp], 0x24
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jmp 0x6534c63a
mov dword [esi + 0x10], 1
jmp 0x6534c63a
mov word [esi + 0x28], 0x2e
jmp 0x6534c65f
mov ax, word [esi + 0x28]
mov word [esi + 0x32], ax
jmp 0x6534c684
mov word [esi + 0x30], 0x2d
jmp 0x6534c6a8
mov word [esi + 0x34], 0x2c
jmp 0x6534c6cc
mov word [esi + 0x2a], 0
jmp 0x6534c6f0
mov word [esi + 0x2a], 0
jmp 0x6534c6fe
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], 0
jmp 0x6534c77a
mov dword [esi + 0x44], ebp
mov dword [esi + 0x48], 0
jmp 0x6534c7ad
mov dword [esi + 0x40], 0
jmp 0x6534c7dd
mov dword [esi + 0x4c], 0
jmp 0x6534c808
xor eax, eax
jmp 0x6534c833
xor eax, eax
jmp 0x6534c86f
xor eax, eax
jmp 0x6534c8aa
test byte [esi + 0x3c], 2
jne 0x6534c8e3
jmp 0x6534c8fe
mov eax, dword [esi + 0x3c]
and ecx, 0x3c
or eax, ecx
mov dword [esi + 0x3c], eax
jmp 0x6534c8fe
or al, 4
or ecx, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], ecx
jmp 0x6534c8fe