Function at 0x402150
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
xor dl, dl
cmp esi, 1
push edi
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], dl
mov byte [esp + 0x13], dl
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], 0
mov byte [esp + 0x17], dl
jg 0x4021a2
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax]
push ecx
call fcn.00402050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov ebx, 1
mov byte [0x40afc0], 0
cmp esi, ebx
mov dword [esp + 0x18], ebx
jle 0x402527
jmp 0x4021c0
mov dl, byte [esp + 0x15]
mov eax, dword [esp + 0x12c]
mov edi, dword [eax + ebx*4]
lea ebp, [eax + ebx*4]
mov cl, byte [edi]
movsx eax, cl
sub eax, 0x2d
je 0x4021e0
sub eax, 2
jne 0x402341
test dl, dl
jne 0x402341
mov al, byte [edi + 1]
mov ecx, 1
test al, al
je 0x40250b
movsx eax, byte [edi + ecx]
add eax, 0xffffffbd
cmp eax, 0x32
ja case.0x402210.73
xor edx, edx
mov dl, byte [eax + 0x402608]
jmp dword [edx*4 + 0x4025ec]
mov al, byte [esp + 0x13]
test al, al
jne case.0x402210.73
mov byte [0x40ac55], 1
mov byte [esp + 0x13], 1
jmp 0x402280
mov al, byte [esp + 0x14]
test al, al
jne 0x4025c2
mov byte [0x40ac56], 1
mov byte [esp + 0x14], 1
jmp 0x402280
mov al, byte [esp + 0x17]
test al, al
jne 0x402566
mov byte [0x40ac58], 1
mov byte [esp + 0x17], 1
jmp 0x402280
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4025c2
mov byte [0x40ac57], 1
mov dword [esp + 0x1c], 1
mov edi, dword [ebp]
inc ecx
cmp byte [edi + ecx], 0
je 0x40250b
jmp 0x4021f8
mov eax, dword [esp + 0x128]
inc ebx
cmp ebx, eax
jg case.0x402210.73
mov al, byte [0x40ac54]
test al, al
jne case.0x402210.73
mov eax, dword [esp + 0x12c]
or ecx, 0xffffffff
mov dword [esp + 0x18], 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, 0x40afc0
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 [0x40ac54], 1
jmp 0x402507
mov eax, dword [esp + 0x128]
inc ebx
cmp ebx, eax
jg 0x402566
mov al, byte [0x40ab4c]
test al, al
jne 0x402566
mov eax, dword [esp + 0x12c]
or ecx, 0xffffffff
mov dword [esp + 0x18], 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, 0x40ab50
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 [0x40ab4c], 1
jmp 0x402507
cmp cl, 0x5c
jne 0x402380
cmp byte [edi + 1], cl
jne 0x402380
mov al, byte [esp + 0x16]
test al, al
jne 0x402380
add edi, 2
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x16], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40ab3c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40250b
test dl, dl
jne 0x40249d
cmp cl, 0x22
jne 0x4023ad
mov al, byte [edi + 1]
test al, al
je 0x4023a6
cmp al, 0x22
je 0x4023a6
mov byte [esp + 0x20], al
mov ecx, dword [ebp]
mov al, byte [ecx + 1]
test al, al
jne 0x402394
mov byte [esp + 0x20], 0
jmp 0x4023ce
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
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 [0x40ac55]
test al, al
je 0x402472
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.PATH
call esi
mov ebp, eax
push ebp
call fcn.00402b5c
add esp, 4
mov ebx, eax
push ebp
push ebx
push str.PATH
call esi
push 0x41b200
push ebp
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.004016c0
add esp, 0x10
test al, al
jne 0x402464
mov edi, 0x409a98
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41b200
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 + 0x28]
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004016c0
add esp, 0x10
test al, al
je 0x402544
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x15], 1
jmp 0x40250b
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41b200
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40250b
cmp ebx, esi
jge 0x40250b
mov edx, esi
sub edx, ebx
add ebx, edx
mov dword [esp + 0x18], 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, 0x41b320
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, 0x409a94
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, 0x41b320
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 0x4024ab
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x128]
inc ebx
cmp ebx, esi
mov dword [esp + 0x18], ebx
jl 0x4021bc
mov al, byte [esp + 0x16]
test al, al
jne 0x40255e
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
push eax
call fcn.00402050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
push str.The_specified_application_is_not_on_the_path._n_n
call fcn.004027fe
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov al, byte [esp + 0x15]
test al, al
jne 0x402583
mov ecx, dword [esp + 0x12c]
mov edx, dword [ecx]
push edx
call fcn.00402050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov al, byte [0x40ac54]
test al, al
je 0x4025b2
mov al, byte [0x40ab4c]
test al, al
jne 0x4025b2
mov eax, dword [esp + 0x12c]
mov ecx, dword [eax]
push ecx
call fcn.00402050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov al, byte [esp + 0x14]
test al, al
je 0x4025df
mov al, byte [esp + 0x13]
test al, al
jne 0x4025df
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
push eax
call fcn.00402050
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x114
ret