Function at 0x4258c9
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x435db9
call fcn.00434feb
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], eax
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x18], eax
je 0x42589f
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
je 0x42589f
xor ecx, ecx
push 2
mov esi, 0x184
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00434611
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 0x18], edi
jne 0x4256ec
and dword [ebp - 0x1c], eax
push 0x442300
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR80.dll__CxxThrowException
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, esi
jle 0x425709
and dword [ebp - 0x20], 0
push 0x442300
lea eax, [ebp - 0x20]
jmp 0x4256e6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
call fcn.004254b6
cmp eax, esi
jne 0x425730
mov dword [ebp - 0x24], esi
push 0x442300
lea eax, [ebp - 0x24]
jmp 0x4256e6
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp + 8]
sar esi, 1
test esi, esi
jle 0x42588e
cmp esi, 0xff
jg 0x42588e
mov edi, dword [sym.imp.MSVCR80.dll_wcsncpy]
push esi
push dword [ebp + 8]
push ebx
call edi
add esp, 0xc
lea eax, [ebx + esi*2]
and word [eax], 0
push 0x5c
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp + 8], eax
jne 0x425789
and dword [ebp - 0x28], eax
push 0x442300
lea eax, [ebp - 0x28]
jmp 0x4256e6
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp ebx, dword [ebp + 8]
jbe 0x425862
push dword [ebp + 0xc]
and word [ebx], 0
call esi
test eax, eax
je 0x4257af
push dword [ebp + 0xc]
call fcn.00425675
jmp 0x4257b1
xor eax, eax
test eax, eax
jne 0x425873
push 5
push 0x43e3ac
push ebx
call edi
add esp, 0xc
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x4257d9
push dword [ebp + 0xc]
call fcn.00425675
jmp 0x4257db
xor eax, eax
test eax, eax
jne 0x425873
push 5
push str..bat
push ebx
call edi
add esp, 0xc
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x425803
push dword [ebp + 0xc]
call fcn.00425675
jmp 0x425805
xor eax, eax
test eax, eax
jne 0x425873
push 5
push str..com
push ebx
call edi
add esp, 0xc
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x425829
push dword [ebp + 0xc]
call fcn.00425675
jmp 0x42582b
xor eax, eax
test eax, eax
jne 0x425873
dec ebx
dec ebx
cmp ebx, dword [ebp + 8]
jbe 0x425862
movzx eax, word [ebx]
cmp ax, 0x80
jae 0x42582f
lea ecx, [eax - 0x30]
cmp cx, 9
jbe 0x42582f
cmp ax, 0x61
jb 0x425854
cmp ax, 0x7a
jbe 0x42582f
add eax, 0xffffffbf
cmp ax, 0x19
jbe 0x42582f
jmp 0x42578f
and dword [ebp - 0x2c], 0
push 0x442300
lea eax, [ebp - 0x2c]
jmp 0x4256e6
mov dword [ebp + 0xc], 1
push dword [ebp - 0x18]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.00435090
ret 8
and dword [ebp - 0x30], 0
push 0x442300
lea eax, [ebp - 0x30]
jmp 0x4256e6
mov dword [ebp - 0x34], eax
push 0x442300
lea eax, [ebp - 0x34]
jmp 0x4256e6
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4258dc
push dword [ebp + 8]
call fcn.004255f4
jmp 0x4258de
xor eax, eax
test eax, eax
je 0x4258f5
cmp word [eax], 0
je 0x4258f5
push dword [ebp + 0xc]
push eax
call 0x425687
test eax, eax
jne 0x4258fb
pop ebp
jmp 0x425687
pop ebp
ret 8