Function at 0x403330
Capabilities:
Read file on windows
Set registry value
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x433b27
push eax
mov eax, 0x1038
mov dword fs:[0], esp
call fcn.00432fa0
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov edi, ecx
xor esi, esi
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [edi + 0x94]
push 0x4422e8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, esi
je 0x4035c9
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_4
push ebx
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x1058], esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push 0x2e
push ecx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
push 0x19
lea edx, [esp + 0x2b8]
push 0x8c
push edx
mov dword [esp + 0x48], eax
call esi
mov ebp, eax
add esp, 0x24
mov ecx, 0x23
lea esi, [esp + 0x29c]
lea edi, [esp + 0x6c]
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
jle 0x40359c
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], eax
jle 0x403566
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x2a4]
mov edi, dword [edx + 8]
cmp dword [esi - 4], edi
jne 0x403437
xor ecx, ecx
mov dword [esp + 0x1c], 1
test edi, edi
jle 0x403458
mov al, byte [esi + ecx]
cmp al, byte [edx + ecx + 0xc]
jne 0x403429
inc ecx
cmp ecx, edi
jge 0x403454
jmp 0x403419
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
jmp 0x40343f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x403458
inc eax
add esi, 0x8c
cmp eax, ebp
mov dword [esp + 0x18], eax
jge 0x40356e
jmp 0x403406
mov eax, dword [esp + 0x18]
lea ebp, [eax*8]
mov ecx, dword [esp + 0x14]
sub ebp, eax
mov esi, dword [ecx + 4]
lea ebp, [ebp + ebp*4]
shl ebp, 2
mov eax, dword [esp + ebp + 0x29c]
lea edi, [esp + ebp + 0x29c]
cmp eax, esi
je 0x403566
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 1]
mov dl, al
and ecx, 0xff
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dl, byte [ecx + 4]
mov dword [esp + 0x2c], edx
xor edx, edx
mov dl, byte [ecx + 5]
mov ecx, esi
shr eax, 0x10
shr ecx, 0x10
and edx, 0xff
cmp ecx, eax
jg 0x4034e2
jne 0x403566
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp ecx, eax
jg 0x4034e2
jne 0x403566
cmp edx, dword [esp + 0x20]
jle 0x403566
push 0
lea ecx, [esp + 0x14]
mov dword [edi], esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov ch, byte [esp + 0x20]
add eax, 0x76c
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
and esi, 0xff
shl eax, 0x10
or ecx, eax
push 0
or ecx, esi
mov dword [esp + ebp + 0x328], ecx
add ebp, edx
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 1
push 0x8c
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x20
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40359c
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov dword [esp + 0x28], eax
push ebx
push 0x19
lea eax, [esp + 0x2a8]
push 0x8c
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, eax
add esp, 0x14
test ebp, ebp
jg 0x4033ea
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
or esi, 0xffffffff
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x1050], esi
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40365c
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.00403770
push 4
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
mov dword [esp + 0x20], ebp
test ebp, ebp
mov dword [esp + 0x1050], 1
je 0x403647
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov ebx, dword [eax + 0xc]
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CTime::GetLocalTm
mov esi, dword [eax + 0x10]
push 0
lea ecx, [esp + 0x14]
inc esi
call sub.MFC42.DLL_CTime::GetLocalTm
mov eax, dword [eax + 0x14]
push 0xffffffffffffffff
push 0
push 0
push 0xc
add eax, 0x76c
push ebx
push esi
push eax
mov ecx, ebp
call sub.MFC42.DLL_CTime::CTime
mov dword [esp + 0x1050], 0xffffffff
mov dword [edi + 0x90], eax
jmp 0x4036cc
xor eax, eax
mov dword [esp + 0x1050], 0xffffffff
mov dword [edi + 0x90], eax
jmp 0x4036cc
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x1050], 2
je 0x4036b7
mov ecx, dword [esp + 0x18]
push esi
push 0
push 0
lea edx, [ecx*8]
push 0xc
sub edx, ecx
lea ecx, [edx + edx*4]
lea edx, [esp + ecx*4 + 0x334]
xor ecx, ecx
mov cl, byte [edx + 1]
and ecx, 0xff
push ecx
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [edx]
shr edx, 0x10
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CTime::CTime
jmp 0x4036b9
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1050], esi
mov edi, ecx
mov dword [ecx + 0x90], eax
mov ecx, edi
call fcn.00403870
lea edx, [esp + 0x38]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 6
push 0
push 0
push 0
push str.SOFTWAREOZ_Development9D658AFE_FDB5_4D69_9EDC_742B3ADB0FC0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403757
lea ecx, [esp + 0xf8]
push 1
push ecx
mov ecx, edi
call fcn.00403940
lea edx, [esp + 0x184]
push 2
push edx
mov ecx, edi
call fcn.00403940
lea eax, [esp + 0x210]
push 1
push eax
mov ecx, edi
call fcn.00403940
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x6c]
push 0x230
push ecx
push 3
push 0
push str.Settings
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1048]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1044
ret