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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c98
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x550070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x14]
call fcn.00403790
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00403790
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x60]
call fcn.004057b0
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x54]
call fcn.004057b0
mov byte [ebp - 4], 4
cmp dword [ebp + 8], 0
jne 0x4bc39c
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x20]
jmp 0x4bc746
mov eax, dword [ebp + 8]
push eax
push 0x522228
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040e1d0
add esp, 0xc
push 0x20119
lea ecx, [ebp - 0x14]
call fcn.004038a0
push eax
push Ordinal_1
lea ecx, [ebp - 0x60]
call fcn.004056a0
test eax, eax
je 0x4bc41e
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x24]
jmp 0x4bc746
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405e80
push eax
push 0
lea ecx, [ebp - 0x60]
call fcn.00405540
test eax, eax
je 0x4bc492
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x28]
jmp 0x4bc746
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004054f0
lea ecx, [ebp - 0x10]
call fcn.004037d0
movzx ecx, al
test ecx, ecx
je 0x4bc4f9
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x2c]
jmp 0x4bc746
mov edx, dword [ebp - 0x10]
push edx
push 0x522270
lea eax, [ebp - 0x14]
push eax
call fcn.0040e1d0
add esp, 0xc
push 0x20119
lea ecx, [ebp - 0x14]
call fcn.004038a0
push eax
push Ordinal_1
lea ecx, [ebp - 0x54]
call fcn.004056a0
test eax, eax
je 0x4bc57b
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x30]
jmp 0x4bc746
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405e80
push eax
push 0
lea ecx, [ebp - 0x54]
call fcn.00405540
test eax, eax
je 0x4bc5ef
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x34]
jmp 0x4bc746
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004054f0
call fcn.004bc0a0
test eax, eax
je 0x4bc60e
lea eax, [ebp - 0x10]
push eax
call fcn.004bc130
add esp, 4
mov dword [ebp - 0x1c], 0x104
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00405e80
push eax
lea ecx, [ebp - 0x10]
call fcn.004038a0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4bc687
mov dword [ebp - 0x38], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x38]
jmp 0x4bc746
lea ecx, [ebp - 0x48]
call fcn.004bbd10
lea ecx, [ebp - 0x18]
call fcn.004038a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bc6f5
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x48]
call fcn.004bbd90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x3c]
jmp 0x4bc746
lea ecx, [ebp - 0x48]
call fcn.004bbd90
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00405790
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.00405790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004036f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004036f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036f0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret