Function at 0x463830
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x7c
test eax, eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x60], ecx
je 0x463b10
test edx, edx
je 0x463b10
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x463b10
mov dword [esp], eax
call fcn.0045ba60
cmp eax, esi
mov dword [ebp - 0x64], eax
je 0x463b20
mov ecx, dword [ebp + 8]
mov dword [esp], esi
test ecx, ecx
jne 0x463990
call fcn.00474638
mov ebx, eax
test ebx, ebx
je 0x463b10
lea edx, [ebp - 0x50]
mov eax, ebx
call fcn.00463670
mov dword [esp], ebx
mov esi, eax
mov dword [ebp - 0x64], eax
call fcn.00474468
test esi, esi
je 0x463b10
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x4c]
call fcn.00463670
test eax, eax
mov ebx, eax
je 0x463b00
mov eax, dword [ebp - 0x50]
lea esi, [eax - 1]
cmp esi, dword [ebp - 0x4c]
mov dword [ebp - 0x50], esi
jne 0x46390d
test esi, esi
jle 0x463b00
mov dword [ebp - 0x5c], esi
xor edi, edi
mov esi, dword [ebp - 0x64]
jmp 0x4638ec
add edi, 1
cmp dword [ebp - 0x5c], edi
je 0x463b00
mov eax, dword [ebx + edi*4]
mov dword [esp + 4], eax
mov eax, dword [esi + edi*4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4638e0
mov esi, dword [ebp - 0x5c]
cmp esi, edi
je 0x463b00
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x48]
call fcn.00463670
test eax, eax
mov edx, eax
mov dword [ebp - 0x60], eax
je 0x463b00
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
cmp ecx, eax
cmovle eax, ecx
test eax, eax
mov dword [ebp - 0x6c], ecx
jle 0x463c98
xor edi, edi
mov esi, edx
mov dword [ebp - 0x5c], eax
jmp 0x46394f
add edi, 1
cmp edi, dword [ebp - 0x5c]
je 0x4639a0
mov eax, dword [esi + edi*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + edi*4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x463947
xor esi, esi
test edi, edi
jne 0x4639a0
mov eax, dword [ebp - 0x64]
call fcn.004635f0
mov eax, ebx
call fcn.004635f0
mov eax, dword [ebp - 0x60]
call fcn.004635f0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0045c720
mov ebx, eax
jmp 0x463884
mov eax, dword [ebp - 0x50]
test eax, eax
jle 0x463c6d
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], edi
mov esi, edx
lea eax, [edx + eax*4]
xor edx, edx
mov edi, esi
mov ebx, edx
mov esi, eax
mov eax, dword [edi]
add edi, 4
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add ebx, eax
cmp edi, esi
jne 0x4639c1
mov esi, ebx
mov edi, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
sub eax, edi
lea eax, [eax + eax*2]
add eax, esi
cmp edx, edi
jle 0x463a1d
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], ebx
mov ebx, eax
mov dword [ebp - 0x68], edi
lea esi, [ecx + edi*4]
lea edx, [ecx + edx*4]
mov edi, esi
mov esi, edx
mov eax, dword [edi]
add edi, 4
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add ebx, eax
cmp edi, esi
jne 0x463a02
mov eax, ebx
mov edi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x5c]
mov esi, eax
add esi, 1
mov dword [esp], esi
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x46396b
mov byte [eax], 0
mov eax, dword [ebp - 0x50]
xor ecx, ecx
test eax, eax
mov dword [ebp - 0x5c], eax
jle 0x463a6d
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], edi
mov edi, ecx
nop
mov eax, dword [ebx + edi*4]
add edi, 1
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
cmp edi, dword [ebp - 0x5c]
jne 0x463a50
mov ebx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x463a6f
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmovne ecx, edx
add al, al
mov eax, dword [ebp - 0x4c]
sbb ecx, 3
cmp edi, eax
jge 0x463ca7
sub eax, edi
lea eax, [eax + eax*2]
add eax, ecx
nop
mov edx, 0x2e2e
add ecx, 3
mov word [ecx - 3], dx
mov byte [ecx - 1], 0
cmp ecx, eax
mov byte [ecx - 1], 0x2f
jne 0x463ab0
mov byte [eax], 0
mov eax, dword [ebp - 0x48]
cmp edi, eax
mov dword [ebp - 0x5c], eax
jge 0x46396b
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x60]
nop
mov eax, dword [ebx + edi*4]
add edi, 1
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
cmp edi, dword [ebp - 0x5c]
jne 0x463ae0
mov ebx, dword [ebp - 0x68]
jmp 0x46396b
xor esi, esi
mov dword [ebp - 0x60], 0
jmp 0x46396b
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.PATH
call sub.msvcrt.dll_getenv
test eax, eax
je 0x46386f
mov dword [esp], eax
mov dword [ebp - 0x68], eax
call sub.msvcrt.dll_strlen
lea ebx, [eax + 1]
mov eax, 2
cmp ebx, 1
cmovbe ebx, eax
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 0x23]
and eax, 0xfffffff0
call fcn.00472fb0
mov edx, dword [ebp - 0x68]
sub esp, eax
lea edi, [esp + 0x1b]
mov ebx, edx
and edi, 0xfffffff0
mov dword [ebp - 0x68], edi
movzx eax, byte [ebx]
test al, al
je 0x463b90
cmp al, 0x3b
je 0x463b90
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x463b7c
lea esi, [esi]
cmp ebx, edx
je 0x463c80
mov esi, ebx
sub esi, edx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
movzx eax, byte [ebx - 1]
cmp al, 0x5c
je 0x463c74
cmp al, 0x2f
je 0x463c74
mov byte [edi + esi], 0x2f
mov byte [edi + esi + 1], 0
mov eax, dword [ebp - 0x64]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__access]
test eax, eax
je 0x463c3c
mov edx, edi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x463bef
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
sbb edx, 3
mov dword [edx], 0x6578652e
mov byte [edx + 4], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__access]
test eax, eax
jne 0x463c5e
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
js 0x463c5e
movzx eax, word [ebp - 0x42]
and ax, 0xf000
cmp ax, 0x8000
je 0x463c9f
cmp byte [ebx], 0
je 0x463c90
add ebx, 1
mov edx, ebx
jmp 0x463b75
xor esi, esi
jmp 0x4639dc
mov byte [edi + esi], 0
jmp 0x463bc9
mov byte [edi], 0x2e
mov byte [edi + 1], 0x2f
mov byte [edi + 2], 0
jmp 0x463bc9
mov esi, dword [ebp - 0x64]
jmp 0x46386f
xor esi, esi
jmp 0x46396b
mov esi, dword [ebp - 0x68]
jmp 0x46386f
mov eax, ecx
jmp 0x463ac8