Function at 0x10051af9
Capabilities:
Allocate thread local storage
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10051d45
mov dword [ebp - 0x28], 0x32bd
mov dword [ebp - 0x38], 0x1000cf94
cmp dword [ebp - 0x28], 0x3470
jle 0x10051be5
and dword [ebp - 0x24], 0
jmp 0x10051b36
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7763
jge 0x10051be5
and dword [ebp - 0x20], 0
jmp 0x10051b50
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x718f
jge 0x10051be0
and dword [ebp - 0x18], 0
jmp 0x10051b6a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6e50
jge 0x10051bdb
and dword [ebp - 0xc], 0
jmp 0x10051b80
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xcec
jge 0x10051bd9
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0xc]
sar eax, cl
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0xa8]
call fcn.1001072e
pop ecx
pop ecx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
call fcn.1001d53e
push eax
call fcn.10067b63
pop ecx
lea ecx, [ebp - 0xa8]
call fcn.1001d534
jmp 0x10051b79
jmp 0x10051b63
jmp 0x10051b49
jmp 0x10051b2f
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x28], 0x3094
jge 0x10051bfd
push dword [ebp - 0x38]
call fcn.10067b63
pop ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10051c69
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10051c47
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x10051c64
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x50]
call fcn.1001d90b
mov dword [eax], 0x53e3f36a
jmp 0x10051c3c
jmp 0x10051d40
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
movzx eax, byte [eax]
test eax, eax
je 0x10051d40
mov dword [ebp - 0x2c], 0x6c78
mov dword [ebp - 0x60], 0x1000cfb4
cmp dword [ebp - 0x2c], 0x6dbe
jle 0x10051d1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
and dword [ebp - 0x10], 0
jmp 0x10051cb3
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x31c
jge 0x10051d1c
and dword [ebp - 0x14], 0
jmp 0x10051cc9
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x463e
jge 0x10051d1a
and dword [ebp - 0x1c], 0
jmp 0x10051cdf
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5e67
jge 0x10051d18
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
shl eax, cl
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
mov ecx, 0x10082bb8
call fcn.1001d55e
jmp 0x10051cd8
jmp 0x10051cc2
jmp 0x10051cac
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp dword [ebp - 0x2c], 0x6b42
jge 0x10051d40
mov edx, dword [ebp - 0x60]
mov ecx, 0x10082bb8
call fcn.100202a3
jmp 0x10051dd2
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10051d87
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x10051d85
push 0
call fcn.10046f8a
pop ecx
jmp 0x10051dd2
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10051db5
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x10051dd2
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x74]
call fcn.1001d90b
mov dword [eax], 6
jmp 0x10051daa
mov esp, ebp
pop ebp
ret