Function at 0x1005de47
Capabilities:
Query environment variable

Disassembly:
push 0x34
mov eax, 0x10070f0c
call fcn.100607bc
mov ecx, dword [0x10108918]
mov esi, 0x721
mov eax, dword [ebp - 0x28]
add ecx, 0x32
add eax, ecx
mov dword [ebp - 0x14], 0x25
push esi
mov dword [0x10108934], eax
call fcn.100656f3
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push esi
push eax
push str.got_Ba
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov al, byte [0x10108934]
sub al, byte [0x10108918]
add al, 0x37
add al, byte [ebp - 0x20]
add byte [0x10108928], al
push 3
pop ecx
mov dword [0x10108930], ecx
call fcn.1005dbcc
mov ecx, dword [0x10108918]
mov ebx, eax
mov eax, dword [0x10108934]
add ecx, 0x58
xor esi, esi
add ecx, eax
sub ebx, ecx
sbb esi, esi
cmp byte [0x10108930], 3
ja 0x1005dede
mov byte [0x1010892f], al
add eax, 0x6ff
mov dword [ebp - 0x14], eax
push 0x1019fbf8
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp dword [0x1010898c], 4
je 0x1005df06
mov ebx, dword [0x10108934]
add ebx, 0x35
xor esi, esi
jmp 0x1005df14
push 0x20
pop eax
sub eax, dword [0x10108934]
add ebx, eax
adc esi, 0
and dword [ebp - 4], 0
push 1
mov dword [ebp - 0x2c], esi
call fcn.1005f9af
pop ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x38]
push 0
mov byte [ebp - 0x40], 0
call fcn.1005eab2
sub esp, 0x10
mov byte [ebp - 4], 3
mov edi, esp
mov dword [ebp - 0x1c], esp
push 0x18
and dword [edi + 8], 0
and dword [edi + 0xc], 0
mov byte [edi], 3
call fcn.100600b8
mov esi, eax
lea eax, [ebp - 0xd]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esp], str.9582
call fcn.1005e5e5
mov dword [edi + 8], esi
push str.Ago_Coat
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.1005ed31
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1005e58d
cmp byte [0x10108930], 3
ja 0x1005dfaf
lea eax, [ebx + 0x6ff]
mov byte [0x1010892f], bl
mov dword [0x10108934], eax
push 3
pop ecx
call fcn.1005dbcc
mov ecx, ebx
sub ecx, eax
add dword [0x10108934], ecx
push 3
pop ecx
call fcn.1005dbcc
cmp byte [0x10108933], 4
mov esi, eax
mov ecx, dword [0x10108934]
mov dword [0x10108930], esi
je 0x1005dfe7
add esi, 0x32
add esi, ecx
jmp 0x1005dfec
sub esi, ecx
add esi, 0x20
push 0x18
mov dword [ebp - 0x1c], esi
pop esi
movzx eax, byte [0x10108921]
cmp ecx, eax
je 0x1005e01d
push 0xffffffffffffffa8
pop ecx
sub ecx, ebx
xor edi, edi
add byte [esi + 0x10108920], cl
dec esi
mov dword [0x10108934], ecx
lea ebx, [ecx*2 + 0x32]
cmp esi, 1
jg 0x1005dff2
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x18], esp
and dword [eax + 0xc], 0
mov byte [eax], 5
mov dword [eax + 8], 0xc98
push str.East_C
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.1005ed31
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1005e58d
cmp dword [str.__zbK], 0x125c
mov esi, dword [ebp - 0x1c]
jne 0x1005e064
sub esi, dword [0x10108978]
mov ecx, esi
call fcn.1005dd1b
sub esp, 0x10
mov dword [0x10108930], eax
mov eax, esp
mov dword [ebp - 0x1c], esp
and dword [eax + 0xc], 0
mov byte [eax], 5
mov dword [eax + 8], 0x1d44
push str.Repeat
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.1005ed31
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.1005e58d
mov ecx, dword [0x10108918]
cmp dword [0x10108930], esi
jb 0x1005e0bd
mov eax, dword [0x1010895c]
imul eax, ecx
mov dword [0x1010895c], eax
mov esi, dword [ebp - 0x14]
inc ecx
add esi, ecx
mov ecx, esi
call fcn.1005dd1b
mov ecx, dword [0x10108934]
sub ecx, eax
add ecx, 0x1d
add ebx, ecx
lea ecx, [esi - 0x1b]
add ecx, ebx
mov dword [0x10108934], ecx
call fcn.1005dc36
mov ecx, dword [0x10108918]
lea eax, [ecx + 0x32]
add ecx, 0x1d
add eax, ebx
mov dword [0x10108934], eax
mov eax, ebx
sub eax, esi
add ecx, eax
cmp dword [0x1010898c], 4
mov dword [0x10108918], ecx
je 0x1005e119
mov ebx, dword [ebp - 0x14]
add ebx, 0x32
add ebx, esi
jmp 0x1005e123
mov eax, dword [ebp - 0x14]
sub eax, esi
add eax, 0x1d
add ebx, eax
call fcn.1005dbcc
mov ecx, dword [0x10108934]
mov edi, dword [0x10108918]
sub ecx, ebx
sub ecx, esi
mov dword [ebp - 0x1c], eax
imul ecx, ecx, 0x10f5a
add ecx, 0xffa2b910
add ecx, edi
mov dword [0x10108934], ecx
cmp esi, ecx
jb 0x1005e17e
mov ecx, dword [ebp - 0x1c]
lea edx, [esi + 0x32]
add edx, eax
movzx ecx, cl
movzx eax, byte [0x10108927]
add esi, 0x1d
imul ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [0x10108934], edx
sub edx, eax
add esi, edx
mov byte [0x10108927], cl
cmp dword [0x10108980], edi
ja 0x1005e194
lea eax, [edi + 0x6fc]
mov dword [0x1010897c], esi
add eax, esi
cmp dword [0x1010898c], 4
je 0x1005e1a4
lea eax, [edi + 0x32]
add eax, esi
jmp 0x1005e1ab
sub edi, esi
add eax, 0x1d
add eax, edi
mov ecx, esi
mov dword [0x10108930], eax
call fcn.1005cb92
cmp byte [0x10108933], 4
mov ecx, dword [0x10108930]
je 0x1005e1d2
mov eax, dword [0x10108934]
add eax, 0x64
add eax, ecx
jmp 0x1005e1df
mov eax, ecx
sub eax, dword [0x10108934]
add eax, 0x4f
add eax, esi
sub ebx, dword [ebp - 0x14]
add ebx, ecx
lea ecx, [ebp - 0x40]
add ebx, eax
mov dword [0x10108934], ebx
call fcn.1005e577
lea ecx, [ebp - 0x30]
call fcn.100011f9
xor eax, eax
inc eax
call fcn.10060796
ret 0xc