Function at 0x43ef37
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
mov eax, 0x202c
call fcn.00444b80
sub esp, eax
mov ebx, dword [esp + 0x204c]
mov edi, dword [esp + 0x2040]
mov eax, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebp, [ecx - 1]
call fcn.0043cd90
mov dword [esp + 0x1c], eax
call fcn.00442200
mov esi, eax
test eax, eax
je 0x43f1cd
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
lea edi, [esp + 0x20]
mov dword [esp], edi
call fcn.0043f440
mov dword [esp], esi
call sub.msvcrt.dll_free
mov esi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 4], 0x2f
mov edi, dword [esp + 0x18]
mov dword [esp], edi
call sub.msvcrt.dll_strrchr
lea edx, [eax + 1]
test eax, eax
cmove edx, edi
mov dword [esp + 0x18], edx
test byte [esp + 0x2048], 0x20
jne 0x43f099
test esi, esi
je 0x43f099
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x43f099
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
lea esi, [esp + 0x1020]
mov dword [esp], esi
call fcn.0043f440
mov edi, esi
mov eax, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esi + ecx - 1]
cmp eax, esi
jbe 0x43f042
cmp byte [eax - 1], 0x2f
je 0x43f042
lea edx, [esp + 0x1020]
sub eax, 1
mov byte [eax], 0
cmp eax, edx
je 0x43f042
cmp byte [eax - 1], 0x2f
jne 0x43f032
mov ecx, dword [esp + 0x2048]
and ecx, 0x41
lea edx, [esp + 0x1020]
lea esi, [esp + 0x201f]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, dword [esp + 0x2044]
mov eax, dword [esp + 0x2040]
call fcn.0043edd0
mov esi, eax
test eax, eax
je 0x43f099
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0043f300
mov eax, esi
jmp 0x43f1ed
test byte [esp + 0x2048], 0x10
jne 0x43f1c6
test ebx, ebx
jne 0x43f0c6
mov dword [esp], str.PATH
call sub.msvcrt.dll_getenv
mov ebx, eax
mov eax, 0
test ebx, ebx
je 0x43f1ed
mov esi, 0
mov edi, 0x1000
sub edi, ebp
movzx edx, byte [ebx]
test dl, dl
je 0x43f107
cmp dl, 0x3b
je 0x43f107
lea eax, [esp + 0x1020]
lea ecx, [eax + edi]
cmp ecx, eax
jbe 0x43f112
add eax, 1
add ebx, 1
mov byte [eax - 1], dl
movzx edx, byte [ebx]
test dl, dl
je 0x43f119
cmp dl, 0x3b
je 0x43f119
cmp eax, ecx
jne 0x43f0ec
jmp 0x43f119
lea eax, [esp + 0x1020]
nop
jmp 0x43f119
lea eax, [esp + 0x1020]
mov byte [eax], 0
mov ecx, dword [esp + 0x2048]
and ecx, 0x41
lea edx, [esp + 0x1020]
lea ebp, [esp + 0x201f]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, dword [esp + 0x2044]
mov eax, dword [esp + 0x2040]
call fcn.0043edd0
test eax, eax
je 0x43f170
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0043f300
mov eax, ebp
jmp 0x43f1ed
test esi, esi
jne 0x43f1db
call fcn.0043cd90
cmp eax, 2
je 0x43f1e4
lea edx, [eax - 0x14]
cmp edx, 1
jbe 0x43f1e4
cmp eax, 5
je 0x43f1e4
cmp byte [ebx], 0
je 0x43f19a
add ebx, 1
mov esi, eax
jmp 0x43f0d2
test eax, eax
je 0x43f1b3
nop
jmp 0x43f1a4
mov eax, esi
mov dword [esp], eax
call fcn.0043f300
mov eax, 0
jmp 0x43f1ed
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0043f300
mov eax, 0
jmp 0x43f1ed
mov eax, 0
jmp 0x43f1ed
call fcn.0043ed6e
mov dword [esp + 0x18], eax
jmp 0x43efa4
cmp byte [ebx], 0
je 0x43f1a2
mov eax, esi
jmp 0x43f190
cmp byte [ebx], 0
je 0x43f1b3
mov eax, esi
jmp 0x43f190
add esp, 0x202c
pop ebx
pop esi
pop edi
pop ebp
ret