Function at 0x402390
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43cba9
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x484]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x494]
mov edi, dword [0x4554ac]
push 0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
mov esi, eax
push 0x86
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402437
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test ebx, ebx
je 0x402437
test esi, esi
je 0x402437
mov edi, ebx
shr edi, 1
call fcn.00404f90
push ebx
lea eax, [ebp + 0x30]
push eax
mov eax, esi
call fcn.0040c820
mov dword [esp + 0x30], eax
jmp 0x40243f
mov dword [esp + 0x30], 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.LockedSpeed
call dword [0x443828]
push ecx
mov dword [esp + 0x494], 0
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SETTING
call dword [0x443828]
lea esi, [ebp + 0x30]
or edi, 0xffffffff
push esi
mov dword [esp + 0x498], edi
call fcn.0040ccc0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.StartRead
mov dword [0x455188], eax
call dword [0x443828]
push ecx
mov dword [esp + 0x494], 1
mov ecx, esp
mov dword [esp + 0x28], esp
push str.SETTING
call dword [0x443828]
push esi
mov dword [esp + 0x498], edi
call fcn.0040ccc0
lea ecx, [esp + 0x54]
push ecx
mov dword [0x45518c], eax
call fcn.004066f0
add esp, 4
mov dword [esp + 0x48c], 2
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402514
lea eax, [esp + 0x54]
call fcn.00403940
lea ecx, [ebp + 0x154]
mov edi, eax
mov eax, ecx
call fcn.00402900
lea ecx, [esp + 0x24]
call dword [0x44382c]
mov byte [esp + 0x48c], 3
mov ebx, dword [str.PLUGIN]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov edi, eax
push 0x95
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402583
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test ebp, ebp
je 0x40257f
test eax, eax
je 0x40257f
mov edi, dword [esp + 0x28]
shr ebp, 1
add edi, 0x14
push ebp
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
jmp 0x402593
mov ebp, dword [esp + 0x28]
lea edi, [ebp + 0x14]
push 0x4580fc
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea edx, [esp + 0x6c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebp, ebp
cmp eax, ebp
jge 0x4025cf
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x490], 0xffffffff
call fcn.004038c0
xor eax, eax
jmp 0x4028ce
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
lea ebx, [esp + 0x70]
call fcn.004047c0
add esp, 4
push eax
lea edx, [esp + 0x24]
push edx
mov edi, 0x444b94
mov byte [esp + 0x494], 4
call fcn.00401ae0
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x490], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov bl, 3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48c], bl
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x444b54
call dword [0x443828]
push ecx
mov byte [esp + 0x494], 6
mov ecx, esp
mov dword [esp + 0x24], esp
push str.SETTING
call dword [0x443828]
mov byte [esp + 0x494], bl
push esi
lea ebx, [esp + 0x40]
call fcn.0040cb30
push 0x444b98
push ecx
mov byte [esp + 0x494], 7
mov eax, ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call dword [0x443834]
lea ecx, [esp + 0x40]
push ecx
call fcn.0041f0d0
add esp, 0xc
lea ecx, [esp + 0x18]
call dword [0x44382c]
mov byte [esp + 0x48c], 9
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x44]
xor esi, esi
sar edx, 2
test edx, edx
jbe 0x402842
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, esi
lea eax, [esp + 0x38]
call fcn.0041c410
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, 0x458108
call fcn.00403210
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x490], 0xa
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48c], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
push ecx
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call dword [0x443834]
lea ebx, [esi + 0x96]
call fcn.00402f10
test eax, eax
je 0x40273a
mov edi, dword [esp + 0x28]
add edi, 0x18
lea ebx, [esp + 0x18]
call fcn.004034e0
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
jne 0x402809
mov ebx, esi
lea eax, [esp + 0x38]
call fcn.0041c410
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x458128
call fcn.00403210
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x490], 0xb
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48c], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esp + 0x18]
push edx
call ebp
test eax, eax
jne 0x402809
push 0x104
lea eax, [esp + 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x274]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x443738]
lea eax, [esp + 0x38]
call fcn.0041c410
lea edx, [esp + 0x2c]
push edx
mov ecx, eax
mov ebx, 0x444b94
call fcn.004047c0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x490], 0xc
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48c], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
je 0x40282c
push 1
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call dword [0x443834]
mov ecx, dword [esp + 0x30]
add ecx, 0xbc
call fcn.00414ea0
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
inc esi
sar eax, 2
cmp esi, eax
jb 0x4026c1
xor ebp, ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x48c], 0xd
mov esi, dword [esp + 0x44]
cmp esi, ebp
je 0x402880
mov edi, dword [esp + 0x48]
cmp esi, edi
je 0x402877
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
add esi, 4
cmp esi, edi
jne 0x402864
mov esi, dword [esp + 0x44]
push esi
call sub.mfc90u.dll_delete
add esp, 4
mov byte [esp + 0x48c], 7
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x34]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x490], 0xffffffff
call fcn.004038c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x484]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00436590
add esp, 0x47c
ret 4