Function at 0x4036e0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Link many functions at runtime
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42397d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00403c90
push 0x42d1a8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x42b804
lea ecx, [esp + 0x20]
mov dword [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call fcn.00423170
lea eax, [esp + 0x10]
mov byte [esp + 0x148], 2
push eax
call fcn.004033e0
add esp, 4
lea ecx, [esp + 0x40]
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403956
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
push str.nbcodedatapath
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x43], 0x5c
jne 0x403796
lea edx, [esp + 0x44]
lea eax, [esp + 0x14]
push edx
push str._s_s_
push eax
jmp 0x4037a5
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push ecx
push 0x42b7e4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call fcn.00401400
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov byte [esp + 0x1b], 0
push str.replace.opt
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40380a
mov byte [esp + 0x1b], 1
jmp 0x403863
mov ecx, dword [esp + 0x150]
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x150], 4
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x403981
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x42b7d0
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403940
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]
mov edi, eax
test edi, edi
je 0x4038d2
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0x42b7cc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x4038fb
lea ecx, [esp + 0x40]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403981
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push 0x42b7c8
push eax
jmp 0x403979
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [esp + 0x2f]
add esp, 0x14
cmp al, 1
jne 0x403981
lea ecx, [esp + 0x10]
push str.replace.opt
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x403981
lea eax, [esp + 0x40]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403981
jmp 0x40396a
lea eax, [esp + 0x40]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403981
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push 0x42b7c8
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::Close
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x14]
mov dword [0x42d60c], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x42d60c]
test eax, eax
jne 0x403a3a
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x24]
mov bl, 5
push ecx
push edx
mov byte [esp + 0x154], bl
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x42b770
push ecx
mov byte [esp + 0x154], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
push 0x40
push 0x42b3d8
push edx
mov ecx, ebp
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
jmp 0x403c32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b760
push eax
call esi
mov dword [0x42d608], eax
mov eax, dword [0x42d60c]
push 0x42b754
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b744
push ecx
mov dword [0x42d604], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b734
push edx
mov dword [0x42d600], eax
call esi
mov dword [0x42d5fc], eax
mov eax, dword [0x42d60c]
push 0x42b724
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b718
push ecx
mov dword [0x42d5f8], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b704
push edx
mov dword [0x42d5f4], eax
call esi
mov dword [0x42d5f0], eax
mov eax, dword [0x42d60c]
push 0x42b6f4
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b6e8
push ecx
mov dword [0x42d5ec], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b6dc
push edx
mov dword [0x42d5e8], eax
call esi
mov dword [0x42d5e4], eax
mov eax, dword [0x42d60c]
push 0x42b6d4
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b6cc
push ecx
mov dword [0x42d5e0], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b6c4
push edx
mov dword [0x42d5dc], eax
call esi
mov dword [0x42d5d8], eax
mov eax, dword [0x42d60c]
push 0x42b6bc
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b6ac
push ecx
mov dword [0x42d5d4], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b69c
push edx
mov dword [0x42d5d0], eax
call esi
mov dword [0x42d5cc], eax
push 0x42b694
mov eax, dword [0x42d60c]
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b688
push ecx
mov dword [0x42d5c8], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b67c
push edx
mov dword [0x42d5c4], eax
call esi
mov dword [0x42d5c0], eax
mov eax, dword [0x42d60c]
push 0x42b66c
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b660
push ecx
mov dword [0x42d5bc], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b650
push edx
mov dword [0x42d5b8], eax
call esi
mov dword [0x42d5b4], eax
mov eax, dword [0x42d60c]
push 0x42b640
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b62c
push ecx
mov dword [0x42d5b0], eax
call esi
mov edx, dword [0x42d60c]
push 0x42b620
push edx
mov dword [0x42d5ac], eax
call esi
mov dword [0x42d5a8], eax
mov eax, dword [0x42d60c]
push 0x42b614
push eax
call esi
mov ecx, dword [0x42d60c]
push 0x42b604
push ecx
mov dword [0x42d5a4], eax
call esi
mov dword [0x42d5a0], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x148], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x1c]
mov byte [esp + 0x148], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret 4