Function at 0x1000b2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x304
mov eax, dword [0x100a9100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x2e0]
push eax
push dword [0x100af238]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2fc], 0
lea eax, [ebp - 0x2fc]
mov dword [ebp - 4], 0
push eax
push 0x100956a8
push 0x17
push 0
push 0x1008b670
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000b751
push 0x64
lea eax, [ebp - 0xd8]
push eax
push str.TEXTSERVICE_PROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x30c], esi
test eax, eax
je 0x1000b421
mov ecx, str.hans
lea eax, [ebp - 0xd8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b3b6
test dx, dx
je 0x1000b3b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b3b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b390
xor eax, eax
jmp 0x1000b3bb
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, str.hant
mov eax, 1
cmove edi, eax
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x308], edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b3fc
test dx, dx
je 0x1000b3f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b3fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b3d6
xor eax, eax
jmp 0x1000b401
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000b411
mov dword [ebp - 0x30c], 1
jmp 0x1000b42b
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x308], edi
test edi, edi
jne 0x1000b42b
mov dword [ebp - 0x308], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp eax, 0x804
je 0x1000b464
cmp eax, 0xc00
je 0x1000b464
cmp eax, 0x1004
je 0x1000b464
cmp eax, 0x404
je 0x1000b464
cmp eax, 0xc04
je 0x1000b464
cmp eax, 0x1404
je 0x1000b464
push 6
push 0x100955a8
jmp 0x1000b46b
push 3
push 0x100955a0
xorps xmm0, xmm0
mov dword [ebp - 0x2e8], esi
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2e4], esi
movups xmmword [ebp - 0x2f8], xmm0
call fcn.10003770
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2f8]
cmp dword [ebp - 0x2e4], 7
mov ecx, 0x804
mov esi, dword [ebp - 0x2fc]
cmova eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x2e8]
add eax, eax
mov dword [ebp - 0x310], eax
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
call fcn.1000b1e0
push 0
push dword [ebp - 0x308]
push 0
push eax
push 0
push dword [ebp - 0x300]
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x310]
push dword [ebp - 0x304]
push 0x100951c0
push 0x804
push 0x100951d0
push esi
call edi
test eax, eax
js 0x1000b6c8
mov esi, dword [ebp - 0x2fc]
mov ecx, 0x404
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
call fcn.1000b1e0
push 0
push dword [ebp - 0x30c]
push 0
push eax
push 0
push dword [ebp - 0x300]
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x310]
push dword [ebp - 0x304]
push 0x100951c0
push 0x404
push 0x100951d0
push esi
call edi
test eax, eax
js 0x1000b6c8
mov edi, dword [ebp - 0x310]
lea edx, [ebp - 0x2e0]
mov eax, dword [ebp - 0x2fc]
mov esi, dword [ebp - 0x304]
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push dword [ebp - 0x300]
push edx
push edi
push esi
push 0x100951c0
push 0xc04
push 0x100951d0
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x1000b6c8
mov eax, dword [ebp - 0x2fc]
lea edx, [ebp - 0x2e0]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x300]
push edx
push edi
push esi
push 0x100951c0
push 0x1404
push 0x100951d0
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x1000b6c8
mov eax, dword [ebp - 0x2fc]
lea edx, [ebp - 0x2e0]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push dword [ebp - 0x300]
push edx
push edi
push esi
push 0x100951c0
push 0x1004
push 0x100951d0
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x1000b6c8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2fc]
test edx, edx
je 0x1000b646
mov dword [ebp - 0x2fc], 0
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x2fc]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2e4]
cmp ecx, 7
jbe 0x1000b690
mov edx, dword [ebp - 0x2f8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b680
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b785
push ecx
push edx
call fcn.1005736b
mov edx, dword [ebp - 0x2fc]
add esp, 8
xor eax, eax
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 7
mov word [ebp - 0x2f8], ax
mov dword [ebp - 4], 6
test edx, edx
je 0x1000b6be
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, 1
jmp 0x1000b76a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2fc]
test ecx, ecx
je 0x1000b6ec
mov dword [ebp - 0x2fc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2e4]
cmp eax, 7
jbe 0x1000b732
mov edx, dword [ebp - 0x2f8]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b785
push ecx
push edx
call fcn.1005736b
mov ecx, dword [ebp - 0x2fc]
add esp, 8
xor eax, eax
mov dword [ebp - 0x2e8], 0
mov dword [ebp - 0x2e4], 7
mov word [ebp - 0x2f8], ax
jmp 0x1000b757
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 4], 4
test ecx, ecx
je 0x1000b768
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005735d
mov esp, ebp
pop ebp
ret
call fcn.10066ebf
int3