Function at 0x403350
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x40d267
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x140]
mov bl, 5
mov ecx, ebp
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::Empty
push 0x2e
lea ecx, [esp + 0x140]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jge 0x403475
mov eax, dword [esp + 0x144]
test eax, eax
je 0x40343a
lea eax, [esp + 0x13c]
push str..DLL
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403486
lea edx, [esp + 0x13c]
push str..EXE
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403486
lea ecx, [esp + 0x13c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x2c]
push 0x100
push edx
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4034b4
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, eax
test esi, esi
jl 0x40359e
lea ecx, [esi + 1]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x2c]
push 0x100
push edx
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call edi
test eax, eax
je 0x403568
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
or esi, 0xffffffff
add esp, 8
cmp eax, esi
je 0x403622
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x134], esi
jmp 0x4037d1
mov eax, dword [esp + 0x144]
test eax, eax
je 0x403643
lea eax, [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x100
push str..DLL
jmp 0x403657
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
push eax
push 0x100
push str..EXE
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jbe 0x4037e4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
test esi, esi
jl 0x403765
lea edx, [esi + 1]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x2c]
push 0x100
push eax
push 0
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call edi
test eax, eax
je 0x40372f
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, ebp
mov byte [esp + 0x138], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403771
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x134], 0xffffffff
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40384e
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret