Function at 0x430b70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], 0
mov eax, 1
test edi, edi
je 0x430bb3
cmp byte [edi], 0
jne 0x430bb9
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], eax
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430bc4
sub eax, edx
lea eax, [eax + ebx - 1]
cmp eax, ebx
jb 0x430bf7
mov cl, byte [eax]
cmp cl, 0x2f
je 0x430bf7
cmp cl, 0x5c
je 0x430bf7
cmp cl, 0x2e
je 0x430bed
dec eax
cmp eax, ebx
jae 0x430bd5
jmp 0x430bf7
mov dword [ebp - 0x114], 0
push ebx
call fcn.00407750
add esp, 4
test edi, edi
je 0x430c14
mov al, byte [ebx]
cmp al, 0x2f
je 0x430c14
cmp al, 0x5c
je 0x430c14
cmp byte [ebx + 1], 0x3a
jne 0x430c20
mov edi, 0x4cbbf0
lea esp, [esp]
mov cl, byte [edi]
lea eax, [ebp - 0x108]
mov esi, 0x103
test cl, cl
je 0x430c61
cmp cl, 0x3b
je 0x430c43
dec esi
js 0x430c43
inc edi
mov byte [eax], cl
mov cl, byte [edi]
inc eax
test cl, cl
jne 0x430c31
lea ecx, [ebp - 0x108]
cmp eax, ecx
jbe 0x430c61
mov cl, byte [eax - 1]
cmp cl, 0x2f
je 0x430c61
cmp cl, 0x5c
je 0x430c61
dec esi
js 0x430c61
mov byte [eax], 0x5c
inc eax
cmp byte [ebx], 0
mov ecx, ebx
je 0x430c76
dec esi
js 0x430c76
mov dl, byte [ecx]
mov byte [eax], dl
inc ecx
inc eax
cmp byte [ecx], 0
jne 0x430c68
mov byte [eax], 0
test esi, esi
js 0x430c97
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jns 0x430ec6
cmp dword [ebp - 0x114], 0
je 0x430d29
cmp esi, 4
jle 0x430d29
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x430cb4
mov ecx, dword [str..com]
mov dl, byte [0x4d3784]
mov esi, dword [sym.imp.MSVCR100.dll__access]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x108]
push 0
push eax
call esi
add esp, 8
test eax, eax
lea eax, [ebp - 0x108]
jns 0x430ef6
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430cf2
mov ecx, dword [str..exe]
sub eax, edx
mov dl, byte [0x4d1ec8]
lea eax, [ebp + eax - 0x10c]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [ebp - 0x108]
push 0
push eax
call esi
add esp, 8
test eax, eax
jns 0x430f24
cmp byte [edi], 0
je 0x430d38
inc edi
cmp byte [edi], 0
jne 0x430c20
mov esi, dword [sym.imp.MSVCR100.dll_getenv]
push str.PATH
call esi
add esp, 4
cmp dword [ebp + 0xc], eax
je 0x430d63
cmp dword [ebp - 0x114], 0
jne 0x430d63
cmp dword [ebp - 0x118], 0
je 0x430eb3
mov edi, dword [ebp - 0x114]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
push edi
push edx
lea ebx, [ebp - 0x108]
mov ecx, 0x512116
call fcn.00430a30
add esp, 8
test eax, eax
jne 0x430ee0
mov cl, byte [eax + 0x50f098]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x430d92
lea eax, [ebp - 0x108]
dec eax
jmp 0x430db0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x430db0
mov ecx, dword [str.lbin]
mov dl, byte [0x4d377c]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x10c]
push edi
lea ebx, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x110]
mov ecx, ebx
call fcn.00430a30
add esp, 8
test eax, eax
jne 0x430ee0
nop
mov cl, byte [eax + 0x512117]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x430df0
lea eax, [ebp - 0x108]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x430e10
mov ecx, dword [str.lbin]
mov dl, byte [0x4d377c]
mov dword [eax], ecx
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x10c]
push edi
lea ebx, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x110]
mov ecx, ebx
call fcn.00430a30
add esp, 8
test eax, eax
jne 0x430ee0
push 0x4d3774
call esi
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x430e7e
cmp byte [ecx], 0
je 0x430e7e
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
push edi
push edx
call fcn.00430a30
add esp, 8
test eax, eax
jne 0x430ee0
push 0x4d3770
call esi
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x430eb3
cmp byte [ecx], 0
je 0x430eb3
mov eax, dword [ebp - 0x10c]
push edi
push eax
mov eax, dword [ebp - 0x110]
lea ebx, [ebp - 0x108]
call fcn.00430a30
add esp, 8
test eax, eax
jne 0x430ee0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x430ed6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x430f04
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x430f34
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret