Function at 0x1006a10f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1006a307
lea eax, [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], 0x22ed
mov dword [ebp - 0x38], 0x1000e248
cmp dword [ebp - 0x24], 0x2454
jle 0x1006a1b8
and dword [ebp - 0x20], 0
jmp 0x1006a14e
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4d01
jge 0x1006a1b8
and dword [ebp - 0x14], 0
jmp 0x1006a164
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc67
jge 0x1006a1b6
mov eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x48], ax
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.100252df
jmp 0x1006a15d
jmp 0x1006a147
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x24], 0x21d6
jge 0x1006a1d0
push dword [ebp - 0x38]
call fcn.1008287d
pop ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1006a1ed
push 0
call dword [sym.imp.GDI32.dll_CloseEnhMetaFile]
jmp 0x1006a302
mov dword [ebp - 0x28], 0x791d
mov dword [ebp - 0x2c], 0x1000e270
cmp dword [ebp - 0x28], 0x7c43
jle 0x1006a2a8
and dword [ebp - 0x10], 0
jmp 0x1006a215
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x34d8
jge 0x1006a2a8
and dword [ebp - 0xc], 0
jmp 0x1006a22f
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x252
jge 0x1006a2a3
and dword [ebp - 0x1c], 0
jmp 0x1006a245
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1788
jge 0x1006a2a1
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov eax, ecx
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x84], eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
lea ecx, [ebp - 0xb4]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xb4]
call fcn.100252df
jmp 0x1006a23e
jmp 0x1006a228
jmp 0x1006a20e
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x28], 0x75a0
jge 0x1006a2c0
push dword [ebp - 0x2c]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1006a2e8
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], 2
jge 0x1006a302
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.10025597
and dword [eax], 0
jmp 0x1006a2dd
jmp 0x1006a396
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1006a36f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xfffffffe
jmp 0x1006a351
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xfffffff7
je 0x1006a36d
mov dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x54]
add eax, 7
mov ecx, dword [ebp - 0x5c]
mov dword [ecx], eax
jmp 0x1006a346
jmp 0x1006a396
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1006a396
push 0x4c05
push 0x4db9
push 1
push 0x2b5a
push 0
call fcn.1004eb38
add esp, 0x14
mov esp, ebp
pop ebp
ret