Function at 0x40399d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x40f9b4
call fcn.0040ef70
sub esp, 0x94
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x1b8]
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
je 0x403bc3
mov dword [ebp - 0x30], 0x410b28
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.00405157
cmp esi, edi
mov dword [ebp - 0x18], edi
jle 0x403a59
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x1b4]
mov ecx, dword [ebp - 0x2c]
push 0x10
mov eax, dword [eax + edi + 0x217]
mov dword [esi + ecx + 0x32], eax
mov eax, dword [ebx + 0x1b4]
lea eax, [eax + edi + 0x21f]
push eax
mov eax, dword [ebp - 0x2c]
lea eax, [esi + eax + 0x22]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x1b4]
add esp, 0xc
lea eax, [eax + edi + 0x10d]
push 0x22
push eax
mov eax, dword [ebp - 0x2c]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add esi, 0x36
add edi, 0x32f
dec dword [ebp - 0x10]
jne 0x4039fb
mov edi, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x30]
call fcn.00405157
imul edi, edi, 0x36
lea ebx, [edi + 0x29]
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
push ebx
push 0
push esi
call sub.MSVCRT.dll_memset
push 0x29
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x18]
and byte [esi], 0
push edi
mov dword [esi + 5], eax
mov dword [esi + 1], ebx
push dword [ebp - 0x2c]
lea eax, [esi + 0x29]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 9]
push eax
lea eax, [esi + 0x29]
push edi
push eax
call fcn.004096ee
lea edi, [ebx + ebx]
push edi
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x18], eax
push ecx
push 0xd90f
push 0xdf
push ebx
push eax
push esi
call fcn.00403bd2
mov eax, dword [ebp - 0x14]
add esp, 0x50
add eax, 0x164
push str.Plugins_
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator_1
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
call fcn.00407d5c
test al, al
pop ecx
jne 0x403b54
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push 0x416474
push eax
call sub.MFC42.DLL_operator_2
push 0x416470
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040ebd0
push 0
push 0
push dword [ebp - 0x10]
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040ebd0
lea eax, [ebp - 0x1c]
push str.filelist.dat
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0x41645c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov ebx, eax
pop ecx
lea ecx, [ebp - 0x14]
call fcn.0040ebd0
test ebx, ebx
je 0x403b9b
push ebx
push 1
push edi
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
and byte [ebp - 4], 0
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0040ebd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405268
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret