Function at 0x10002020
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1001cbe1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call dword [sym.imp.EoRezoTools_17.dll_public:_void___thiscall_CRegistry::constructor_void_]
push str.EoRezo
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
call fcn.1001be24
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push str.Software_
push ecx
mov byte [esp + 0x48], 1
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.debug
push eax
lea edx, [esp + 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
call dword [sym.imp.EoRezoTools_17.dll_public:_class_CString___thiscall_CRegistry::ReadStringKey_struct_HKEY_____char_const___char_const__]
mov ebx, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push str.Software_
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push str.level
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 5
call dword [sym.imp.EoRezoTools_17.dll_public:_unsigned_long_int___thiscall_CRegistry::ReadDwordKey_struct_HKEY_____char_const___char_const__]
lea ecx, [esp + 0x18]
mov esi, eax
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [esp + 8]
push str.enable
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x10002229
cmp dword [esp + 0x4c], esi
ja 0x10002229
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x3c], 6
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [esp + 0x32]
mov ecx, dword [esp + 0x2e]
push eax
mov eax, dword [esp + 0x34]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x34]
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x64]
push str._.2d:_.2d:_.2d:_d__d__s_n
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x64]
add esp, 0x20
push 0
push 0x80
push ebx
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100021af
lea ecx, [esp + 0x4c]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x10002229
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x50]
mov edi, eax
push 0
mov eax, dword [edx - 8]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x20]
push 0
push ecx
mov eax, dword [eax - 8]
lea ecx, [esp + 0x58]
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0x50]
push 0
mov eax, dword [edx - 8]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x50]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
pop edi
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.EoRezoTools_17.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 0xc