Function at 0x422c60
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4736f3
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x218]
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x258], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x482e5c
lea ecx, [ebp - 0x220]
call dword [0x4824d0]
mov dword [ebp - 4], 0
push 0x482e5c
lea ecx, [ebp - 0x228]
call dword [0x4824d0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call dword [0x4824e8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x288]
call fcn.0046a7f2
mov byte [ebp - 4], 3
xor eax, eax
mov byte [ebp - 0x219], 1
mov dword [ebp - 0x238], eax
cmp dword [esi + 0x44], eax
jle 0x42323d
cmp byte [ebp - 0x219], 0
je 0x42323d
test eax, eax
js 0x4232ac
cmp eax, dword [esi + 0x44]
jge 0x4232ac
mov ecx, dword [esi + 0x40]
mov edi, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
lea edx, [ebp - 0x244]
push edx
mov ecx, edi
call fcn.00417a30
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x220]
call dword [0x4824d8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea eax, [ebp - 0x264]
push eax
mov ecx, edi
call fcn.004206b0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x228]
call dword [0x4824d8]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x228]
push ecx
call fcn.0040dc70
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x228]
push edx
push eax
lea ecx, [ebp - 0x22c]
push 0x4861f8
push ecx
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x14
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x228]
push edx
push str.Plugin_directory_set_to:
push 0x484dc0
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x10
mov byte [ebp - 0x21a], 1
push 0
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc100u.dll_]
push eax
lea ecx, [ebp - 0x288]
call sub.mfc100u.dll_CFileFind::FindFile
test eax, eax
jne 0x4230d5
mov eax, dword [ebp - 0x22c]
push eax
push str.Plugin_was_not_found_at_path:
push 0x484dc0
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x10
lea ecx, [ebp - 0x224]
call dword [0x4824e8]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24c]
push ecx
call fcn.0040cac0
mov byte [ebp - 4], 7
mov eax, dword [eax]
mov esi, dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::FormatMessageW]
lea edx, [ebp - 0x218]
push edx
push eax
lea ecx, [ebp - 0x224]
push 0xc4
push ecx
call esi
add esp, 0x14
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x24c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea edx, [ebp - 0x230]
push edx
call fcn.00420bd0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc100u.dll_ATL::CSimpleStringT_wchar_t_1_::IsEmpty]
test al, al
jne 0x422f32
push 1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.0040b8f0
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, eax
call dword [sym.imp.mfc100u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
sete bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x260]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
test bl, bl
je 0x422f32
lea edx, [ebp - 0x254]
push edx
call fcn.0040cac0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x230]
mov edx, dword [eax]
push ecx
push edx
lea eax, [ebp - 0x224]
push 0xc3
push eax
call esi
add esp, 0x14
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x254]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp byte [0x4ae58b], 0
je 0x422faa
lea ecx, [ebp - 0x234]
call dword [0x4824e8]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x268]
push ecx
call fcn.0040cac0
mov byte [ebp - 4], 0xc
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x234]
push 0xc2
push eax
call esi
add esp, 0x10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x234]
call dword [sym.imp.mfc100u.dll_]
push eax
push 0
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Insert]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x234]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x25c]
push str.Displaying_loading_message:
push edx
call fcn.0040c110
mov byte [ebp - 4], 0xd
push 0
push eax
call fcn.0040e340
add esp, 0x14
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x25c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
push 5
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call dword [0x4824cc]
mov byte [ebp - 4], 0xe
call sub.mfc100u.dll_AfxGetThread
test eax, eax
je 0x423013
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x7c]
call eax
test eax, eax
jne 0x423017
xor eax, eax
jmp 0x42301a
mov eax, dword [eax + 0x20]
push eax
mov byte [ebp - 4], 8
call fcn.0040db60
add esp, 0xc
cmp eax, 4
je 0x423072
push str.Cancel_button_was_clicked
lea ecx, [ebp - 0x240]
call dword [0x4824d0]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x240]
push 1
push ecx
call fcn.0040e340
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x240]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov byte [ebp - 0x21a], 0
mov byte [ebp - 0x219], 0
jmp 0x4230a8
push str.Retry_button_was_clicked
lea ecx, [ebp - 0x23c]
call dword [0x4824d0]
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x23c]
push 1
push edx
call fcn.0040e340
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x23c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
cmp byte [ebp - 0x21a], 0
jne 0x422df9
cmp byte [ebp - 0x219], 0
je 0x423214
mov eax, dword [ebp - 0x22c]
push eax
push str.Full_path_to_plugin:
push 0x484dc0
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x10
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc100u.dll_]
push eax
call sub.mfc100u.dll_AfxLoadLibrary
mov esi, eax
test esi, esi
je 0x4231bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PerformRockwellSetupAction
push esi
call ebx
test eax, eax
jne 0x423186
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.0040b540
add esp, 8
mov byte [ebp - 4], 0x11
mov edx, dword [eax]
mov eax, dword [ebp - 0x220]
push 0x4850a0
push edx
push str.:_DLL_not_recognized_as_setup_plugin__
push eax
push str.ssss
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
jmp 0x423207
push str.CancelRockwellSetupAction
push esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x18], eax
call ebx
test eax, eax
je 0x42319b
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x220]
push str.:_Loaded_plugin_successfully.
push ecx
push 0x484dc0
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x10
jmp 0x423214
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x250]
push edx
call fcn.0040b540
add esp, 8
mov byte [ebp - 4], 0x12
mov eax, dword [eax]
mov ecx, dword [ebp - 0x220]
push 0x4850a0
push eax
push str.:_DLL_failed_to_load__
push ecx
push str.ssss
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x18
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov byte [ebp - 0x219], 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x238]
mov esi, dword [ebp - 0x258]
inc eax
mov dword [ebp - 0x238], eax
cmp eax, dword [esi + 0x44]
jl 0x422d0c
lea ecx, [ebp - 0x288]
call sub.mfc100u.dll_CFileFind::Close
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x288]
call sub.mfc100u.dll_CFileFind::CFileFind
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov al, byte [ebp - 0x219]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret
call sub.mfc100u.dll_AfxThrowInvalidArgException
int3