Function at 0x401ff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
cmp esi, 1
push edi
mov byte [esp + 0x11], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x12], 0
jg 0x40203f
mov eax, dword [esp + 0x128]
mov ecx, dword [eax]
push ecx
call fcn.00401f00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ebx, 1
mov byte [0x409a60], 0
cmp esi, ebx
mov dword [esp + 0x14], ebx
jle case.0x4020ab.72
mov edx, dword [esp + 0x128]
mov edi, dword [edx + ebx*4]
lea ebp, [edx + ebx*4]
mov cl, byte [edi]
movsx eax, cl
sub eax, 0x2d
je 0x402077
sub eax, 2
jne 0x4021bf
mov al, byte [esp + 0x10]
test al, al
jne 0x4021bf
mov al, byte [edi + 1]
mov ecx, 1
test al, al
je 0x402391
movsx eax, byte [edi + ecx]
add eax, 0xffffffbd
cmp eax, 0x32
ja case.0x4020ab.72
xor edx, edx
mov dl, byte [eax + 0x402460]
jmp dword [edx*4 + 0x402448]
mov al, byte [esp + 0x13]
test al, al
jne 0x4023ec
mov byte [0x40989d], 1
mov byte [esp + 0x13], 1
jmp 0x402101
mov al, byte [esp + 0x12]
test al, al
jne 0x40241b
mov byte [0x40989f], 1
mov byte [esp + 0x12], 1
jmp 0x402101
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4023ec
mov byte [0x40989e], 1
mov dword [esp + 0x18], 1
mov edi, dword [ebp]
inc ecx
cmp byte [edi + ecx], 0
je 0x402391
jmp 0x402093
mov eax, dword [esp + 0x124]
inc ebx
cmp ebx, eax
jg case.0x4020ab.72
mov al, byte [0x40989c]
test al, al
jne case.0x4020ab.72
mov eax, dword [esp + 0x128]
or ecx, 0xffffffff
mov dword [esp + 0x14], ebx
mov edi, dword [eax + ebx*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x409a60
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [0x40989c], 1
jmp 0x40238d
mov eax, dword [esp + 0x124]
inc ebx
cmp ebx, eax
jg 0x40241b
mov al, byte [0x409794]
test al, al
jne 0x40241b
mov eax, dword [esp + 0x128]
or ecx, 0xffffffff
mov dword [esp + 0x14], ebx
mov edi, dword [eax + ebx*4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x409798
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [0x409794], 1
jmp 0x40238d
cmp cl, 0x5c
jne 0x402202
cmp byte [edi + 1], cl
jne 0x402202
mov al, byte [esp + 0x11]
test al, al
jne 0x402422
add edi, 2
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x11], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x409690
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402391
mov al, byte [esp + 0x10]
test al, al
jne 0x402323
cmp cl, 0x22
jne 0x402233
mov al, byte [edi + 1]
test al, al
je 0x40222c
cmp al, 0x22
je 0x40222c
mov byte [esp + 0x1c], al
mov ecx, dword [ebp]
mov al, byte [ecx + 1]
test al, al
jne 0x40221a
mov byte [esp + 0x1c], 0
jmp 0x402254
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [0x40989d]
test al, al
je 0x4022f8
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.PATH
call esi
mov ebp, eax
push ebp
call fcn.0040291c
add esp, 4
mov ebx, eax
push ebp
push ebx
push str.PATH
call esi
push 0x40aca0
push ebp
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.00401650
add esp, 0x10
test al, al
jne 0x4022ea
mov edi, 0x408a08
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40aca0
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
lea eax, [esp + 0x24]
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401650
add esp, 0x10
test al, al
je 0x4023ca
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x10], 1
jmp 0x402391
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40aca0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402391
cmp ebx, esi
jge 0x402391
mov edx, esi
sub edx, ebx
add ebx, edx
mov dword [esp + 0x14], ebx
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
add ebp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, 0x40adc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408a04
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, 0x40adc0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
jne 0x402331
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x124]
inc ebx
cmp ebx, esi
mov dword [esp + 0x14], ebx
jl 0x402057
mov al, byte [esp + 0x11]
test al, al
jne 0x4023e4
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx]
push edx
call fcn.00401f00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
push str.The_specified_application_is_not_on_the_path._n_n
call fcn.0040264e
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov al, byte [esp + 0x10]
test al, al
jne 0x402409
mov eax, dword [esp + 0x128]
mov ecx, dword [eax]
push ecx
call fcn.00401f00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov al, byte [0x40989c]
test al, al
je 0x402438
mov al, byte [0x409794]
test al, al
jne 0x402438
mov edx, dword [esp + 0x128]
mov eax, dword [edx]
push eax
call fcn.00401f00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x110
ret