Function at 0x401a2d
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x430360
push 0xffffffffffffffff
push 0x5af270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_3
mov bl, 3
push 0x64ff54
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jge 0x430473
lea eax, [esp + 0x34]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_3
mov ecx, dword [esp + 0x38]
mov eax, str.WindowsDir_
test ecx, ecx
jne 0x4303e4
mov eax, 0x661668
mov edi, dword [esp + 0x3c]
xor edx, edx
test edi, edi
sete dl
push edx
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x3c], 4
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x661668
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x40], 5
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x661668
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x48], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], bl
push ecx
call fcn.004cafd0
mov ecx, eax
call fcn.004cb320
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 8
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4304bd
mov edx, dword [esp + 0x34]
push 0x5c
lea ecx, [esp + 0x38]
mov esi, dword [edx - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 9
call sub.MFC42.DLL_CString::operator_3
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft_2
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x430534
mov edx, dword [esp + 0xc]
push edx
call edi
mov esi, eax
test esi, esi
jne 0x430534
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x43059b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret