Function at 0x411f6c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42bf75
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
and byte [ebp - 0xe], 0
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push 0xf
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x24], eax
push str.06N04
push eax
call sub.MSVCRT.dll_strcpy
mov ebx, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebx + 3]
push 5
push eax
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
push 0x1b0
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x411fea
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xdc]
mov ecx, dword [ebp - 0x20]
push eax
push 0x52
push ebx
call fcn.0040b3c3
mov dword [ebp - 0x1c], eax
jmp 0x411fed
mov dword [ebp - 0x1c], edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], edi
jne 0x411ffa
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x41201a
push 0xb9a
call sub.MFC42.DLL_operatornew
cmp eax, edi
pop ecx
mov dword [ebp - 0x18], eax
jne 0x412016
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
je 0x41204d
mov ecx, dword [ebp - 0x1c]
push 0xb9a
push dword [ebp - 0x18]
call fcn.0040beb4
cmp eax, 1
je 0x41204d
push ebx
lea eax, [esi + 0x131]
push str.ERROR:_READING_ENCRYPTED_DDEC_II_BASE_CAL___s
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
mov ebx, str.ERROR:_WRITING_DDEC_II_BASE_CAL___s
je 0x412087
push dword [esi + 0x124]
push 0xa
push 1
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0xa
je 0x412087
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
and dword [ebp - 0x14], 0
cmp byte [ebp - 0xd], 0
je 0x412185
push dword [esi + 0x124]
lea eax, [ebp - 0xe]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4120c5
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
jl 0x41208b
cmp byte [ebp - 0xd], 0
je 0x412185
xor eax, eax
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx + eax]
add dword [ebp - 0x20], ecx
inc eax
cmp eax, 0xb9a
jl 0x4120dd
lea eax, [ebp - 0x20]
push 2
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0xf]
push dword [esi + 0x124]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x412137
push dword [esi + 0x124]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41214b
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
cmp byte [ebp - 0xd], 0
je 0x412185
push dword [esi + 0x124]
push 0xb9a
push 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 0xb9a
je 0x412185
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
and dword [ebp - 0x14], 0
cmp byte [ebp - 0xd], 0
je 0x4121ce
push dword [esi + 0x124]
lea eax, [ebp - 0xe]
push 1
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4121bf
push dword [ebp + 8]
lea eax, [esi + 0x131]
push ebx
push eax
call edi
add esp, 0xc
and byte [ebp - 0xd], 0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xe
jl 0x412189
cmp byte [ebp - 0xd], 0
jne 0x4121eb
mov ecx, dword [0x43b000]
push 1
lea eax, [esi + 0x131]
push 0
push eax
call fcn.0041ae3d
mov byte [esi + 0x130], 1
push dword [ebp - 0x24]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x1c]
pop ecx
test eax, eax
je 0x412211
mov ecx, dword [eax]
push 1
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4