Function at 0x1006fdc0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.101ca95b
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp edi, ebx
je 0x1006fdee
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x1006fdf5
mov esi, 0x8876086c
jmp 0x1006fe5c
mov esi, dword [ebp + 0xc]
test esi, 0xfffffffa
je 0x1006fe07
mov esi, 0x8876086c
jmp 0x1006fe5c
push 0x100323a4
mov dword [eax], ebx
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
push esi
lea ecx, [esp + 0x1c]
mov byte [0x101d9180], al
call fcn.10166da0
lea ecx, [esp + 0x18]
call fcn.10166da0
cmp byte [esp + 0x28], bl
je 0x1006fe5a
lea ecx, [esp + 0x18]
push 0x100323d0
push ecx
call fcn.10166da0
lea edx, [esp + 0x20]
push 0x100323d8
push edx
call fcn.10166da0
add esp, 0x10
xor esi, esi
cmp esi, ebx
jl 0x100704df
cmp byte [esp + 0x28], bl
je 0x1006fe87
lea eax, [esp + 0x18]
push 0x100323d8
push eax
call fcn.10166da0
add esp, 8
push 2
lea ecx, [esp + 0x1c]
call fcn.10166da0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x18]
lea edx, [esp + 0xa8]
push edx
push edi
call eax
mov esi, eax
cmp esi, ebx
jl 0x100704df
mov dword [esp + 0x10], ebx
cmp dword [esp + 0xb4], ebx
jbe 0x100700e0
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x24]
push edx
push edi
call eax
mov ebx, eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call edx
test eax, eax
je 0x100700ca
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ebx
call ecx
mov esi, eax
mov edx, dword [esi]
mov eax, dword [edx]
push esi
call eax
test eax, eax
je 0x1007029e
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x64]
push edx
push esi
call eax
mov esi, eax
test esi, esi
jl 0x100704df
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x40]
push edx
push ebx
call eax
mov esi, eax
test esi, esi
jl 0x100704df
mov eax, dword [esp + 0x6c]
cmp eax, 0xf
jl 0x100700ca
cmp eax, 0x10
jle 0x1006ff32
cmp eax, 0x15
jne 0x100700ca
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x48]
push ebx
call edx
mov ebx, eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push ebx
mov dword [esp + 0x34], ebx
call ecx
test eax, eax
je 0x1007029e
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x18]
test eax, eax
jne 0x1006ff75
mov eax, dword [esp + 0x64]
push edx
push eax
push 0x100323fc
push ecx
call fcn.10166da0
add esp, 0x10
jmp 0x1006ff8a
push eax
mov eax, dword [esp + 0x68]
push edx
push eax
push 0x10032408
push ecx
call fcn.10166da0
add esp, 0x14
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], 1
cmp eax, 1
jb 0x1006ff9f
mov dword [esp + 0x14], eax
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x1007009f
mov edx, dword [ebx]
mov ecx, dword [edx + 0x64]
lea eax, [esp + 0x8c]
push eax
push edi
push ebx
call ecx
mov esi, eax
test esi, esi
jl 0x100704df
mov eax, dword [esp + 0x98]
test eax, eax
jbe 0x10070269
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
call fcn.10166da0
mov esi, eax
test esi, esi
jl 0x100704df
cmp dword [esp + 0x70], 0
jbe 0x10070036
lea edx, [esp + 0x18]
push 0x10032418
push edx
call fcn.10166da0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
add esp, 8
push 0
push 4
push eax
call edx
push eax
lea ecx, [esp + 0x24]
call fcn.10166da0
push 0x10032428
lea eax, [esp + 0x1c]
push eax
jmp 0x1007006c
lea ecx, [esp + 0x18]
push 0x10032434
push ecx
call fcn.10166da0
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add esp, 8
push 0
push 4
push eax
mov eax, dword [edx + 0xc]
call eax
push eax
lea ecx, [esp + 0x24]
call fcn.10166da0
push 0x1003243c
lea ecx, [esp + 0x1c]
push ecx
call fcn.10166da0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x1007008c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x30]
inc edi
cmp edi, dword [esp + 0x14]
jb 0x1006ffab
mov eax, dword [esp + 0x70]
test eax, eax
je 0x100700b5
lea eax, [esp + 0x18]
push 0x1003243c
push eax
call fcn.10166da0
add esp, 8
lea ecx, [esp + 0x18]
push 0x10032454
push ecx
call fcn.10166da0
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xb4]
jb 0x1006feb2
cmp dword [esp + 0xbc], 0
mov dword [esp + 0x10], 0
jbe 0x10070478
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov ecx, dword [edx + 0x30]
push eax
push edi
call ecx
mov ebx, eax
mov edx, dword [ebx]
mov ecx, dword [edx + 4]
lea eax, [esp + 0x58]
push eax
push ebx
mov dword [esp + 0x38], ebx
call ecx
mov esi, eax
test esi, esi
jl 0x100704df
lea edx, [esp + 0x18]
push 0x10032458
push edx
call fcn.10166da0
mov eax, dword [esp + 0x60]
add esp, 8
test eax, eax
je 0x1007014d
push eax
lea eax, [esp + 0x1c]
push 0x1002fafc
push eax
call fcn.10166da0
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x10032468
push ecx
call fcn.10166da0
add esp, 8
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x14], 0
jbe 0x10070450
mov dword [esp + 0x34], 0x10030290
mov dword [esp + 0x38], 0x100302a0
mov dword [esp + 0x3c], 0x10030284
mov eax, dword [esp + 0x14]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x10]
push eax
push ebx
call ecx
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
test eax, eax
je 0x1007043a
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
lea edx, [esp + 0xc0]
push edx
push edi
call eax
mov esi, eax
test esi, esi
jl 0x100704df
lea ecx, [esp + 0x18]
push 0x1003246c
push ecx
call fcn.10166da0
mov eax, dword [esp + 0xc8]
add esp, 8
test eax, eax
je 0x100701f2
push eax
lea edx, [esp + 0x1c]
push 0x1002fafc
push edx
call fcn.10166da0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x10032478
push eax
call fcn.10166da0
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
add esp, 8
lea edx, [esp + 0x40]
push edx
push edi
call eax
mov esi, eax
test esi, esi
jl 0x100704df
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0x48]
push edx
push edi
call eax
mov esi, eax
test esi, esi
jl 0x100704df
mov ecx, dword [edi]
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x50]
push edx
push edi
call eax
mov esi, eax
test esi, esi
jl 0x100704df
xor edi, edi
mov eax, dword [esp + edi*8 + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call edx
test eax, eax
jne 0x100702a8
mov eax, dword [esp + edi*4 + 0x34]
push eax
push 0x10032480
jmp 0x1007040d
cmp dword [esp + 0x70], 0
jbe 0x10070287
lea ecx, [esp + 0x18]
push 0x10032440
push ecx
call fcn.10166da0
add esp, 8
jmp 0x10070090
lea edx, [esp + 0x18]
push 0x1003244c
push edx
call fcn.10166da0
add esp, 8
jmp 0x10070090
mov esi, 0x80004005
jmp 0x100704df
mov eax, dword [esp + edi*8 + 0x40]
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + edi*8 + 0x48]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jl 0x100704df
cmp dword [esp + 0x90], 0
jne 0x10070363
mov eax, dword [esp + edi*8 + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [eax]
lea edx, [esp + 0xe8]
push edx
push eax
mov eax, dword [ecx + 4]
call eax
mov esi, eax
test esi, esi
jl 0x100704df
mov eax, dword [esp + edi*8 + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov esi, eax
test esi, esi
jl 0x100704df
cmp dword [esp + 0xf4], 0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + edi*4 + 0x34]
jbe 0x1007034a
mov ecx, dword [esp + edi*8 + 0x44]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push 0x1003249c
push ecx
call fcn.10166da0
add esp, 0x14
jmp 0x1007041a
push edx
push eax
lea ecx, [esp + 0x20]
push 0x100324b4
push ecx
call fcn.10166da0
add esp, 0x10
jmp 0x1007041a
mov eax, dword [esp + 0x98]
test eax, eax
jbe 0x10070403
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0xc]
push edx
push 0
push ecx
push eax
call fcn.10166da0
mov esi, eax
test esi, esi
jl 0x100704df
mov edx, dword [esp + edi*4 + 0x34]
push edx
lea eax, [esp + 0x1c]
push 0x100324c8
push eax
call fcn.10166da0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
add esp, 0xc
push 0
push 0xc
push eax
call edx
push eax
lea ecx, [esp + 0x24]
call fcn.10166da0
push 0
push 8
push 0x100324e0
lea ecx, [esp + 0x24]
call fcn.10166da0
lea eax, [esp + 0x18]
push 0x10030380
push eax
call fcn.10166da0
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x1007041a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], 0
jmp 0x1007041a
mov eax, dword [esp + edi*4 + 0x34]
push eax
push 0x100324e4
lea ecx, [esp + 0x20]
push ecx
call fcn.10166da0
add esp, 0xc
inc edi
cmp edi, 3
jb 0x1007024b
lea edx, [esp + 0x18]
push 0x100324f8
push edx
call fcn.10166da0
mov ebx, dword [esp + 0x38]
add esp, 8
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x5c]
jb 0x1007018a
mov edi, dword [ebp + 8]
lea eax, [esp + 0x18]
push 0x10032500
push eax
call fcn.10166da0
mov eax, dword [esp + 0x18]
inc eax
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0xbc]
jb 0x100700f6
cmp byte [esp + 0x28], 0
je 0x100704a1
lea ecx, [esp + 0x18]
call fcn.101cad27
cmp byte [esp + 0x28], 0
je 0x100704a1
lea ecx, [esp + 0x18]
push 0x100323f4
push ecx
call fcn.10166da0
add esp, 8
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
inc eax
push edi
push eax
call fcn.10166da0
test eax, eax
jl 0x100704dd
mov eax, dword [edi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
mov edi, eax
push edx
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x24]
mov byte [eax + edi], 0
add esp, 0xc
mov eax, esi
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100704f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x18]
call fcn.101ca97c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc