Function at 0x4036f0
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 0x427bed
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.00403ca0
push 0x433ae8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push 0x431880
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.004273b0
lea eax, [esp + 0x10]
mov byte [esp + 0x148], 2
push eax
call fcn.004033f0
add esp, 4
lea ecx, [esp + 0x40]
push ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403966
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 0x4037a6
lea edx, [esp + 0x44]
lea eax, [esp + 0x14]
push edx
push str._s_s_
push eax
jmp 0x4037b5
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push ecx
push 0x431860
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 0x40381a
mov byte [esp + 0x1b], 1
jmp 0x403873
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 0x403991
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0x43184c
push 0x87
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403950
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 0x4038e2
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 0x431848
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 0x40390b
lea ecx, [esp + 0x40]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push 0x431844
push eax
jmp 0x403989
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 0x403991
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 0x403991
lea eax, [esp + 0x40]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
jmp 0x40397a
lea eax, [esp + 0x40]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x403991
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
push 0x431844
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 [0x433f7c], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x433f7c]
test eax, eax
jne 0x403a4a
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 0x4317ec
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 0x4313d8
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 0x403c42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4317dc
push eax
call esi
mov dword [0x433f78], eax
mov eax, dword [0x433f7c]
push 0x4317d0
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x4317c0
push ecx
mov dword [0x433f74], eax
call esi
mov edx, dword [0x433f7c]
push 0x4317b0
push edx
mov dword [0x433f70], eax
call esi
mov dword [0x433f6c], eax
mov eax, dword [0x433f7c]
push 0x4317a0
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431794
push ecx
mov dword [0x433f68], eax
call esi
mov edx, dword [0x433f7c]
push 0x431780
push edx
mov dword [0x433f64], eax
call esi
mov dword [0x433f60], eax
mov eax, dword [0x433f7c]
push 0x431770
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431764
push ecx
mov dword [0x433f5c], eax
call esi
mov edx, dword [0x433f7c]
push 0x431758
push edx
mov dword [0x433f58], eax
call esi
mov dword [0x433f54], eax
mov eax, dword [0x433f7c]
push 0x431750
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431748
push ecx
mov dword [0x433f50], eax
call esi
mov edx, dword [0x433f7c]
push 0x431740
push edx
mov dword [0x433f4c], eax
call esi
mov dword [0x433f48], eax
mov eax, dword [0x433f7c]
push 0x431738
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431728
push ecx
mov dword [0x433f44], eax
call esi
mov edx, dword [0x433f7c]
push 0x431718
push edx
mov dword [0x433f40], eax
call esi
mov dword [0x433f3c], eax
push 0x431710
mov eax, dword [0x433f7c]
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431704
push ecx
mov dword [0x433f38], eax
call esi
mov edx, dword [0x433f7c]
push 0x4316f8
push edx
mov dword [0x433f34], eax
call esi
mov dword [0x433f30], eax
mov eax, dword [0x433f7c]
push 0x4316e8
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x4316dc
push ecx
mov dword [0x433f2c], eax
call esi
mov edx, dword [0x433f7c]
push 0x4316cc
push edx
mov dword [0x433f28], eax
call esi
mov dword [0x433f24], eax
mov eax, dword [0x433f7c]
push 0x4316bc
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x4316a8
push ecx
mov dword [0x433f20], eax
call esi
mov edx, dword [0x433f7c]
push 0x43169c
push edx
mov dword [0x433f1c], eax
call esi
mov dword [0x433f18], eax
mov eax, dword [0x433f7c]
push 0x431690
push eax
call esi
mov ecx, dword [0x433f7c]
push 0x431680
push ecx
mov dword [0x433f14], eax
call esi
mov dword [0x433f10], 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