Function at 0x410980
Capabilities:
Check if file exists
Create directory
Write file on windows

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp]
push str...360safe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4109c3
push eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push esi
push edi
mov edi, str._fixedleak.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push 0x4501ac
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x410a2e
mov ecx, dword [esp + 0x114]
push esi
mov eax, dword [ecx]
mov edx, dword [eax - 8]
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4

Function at 0x410a40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43d1fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
mov eax, 4
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x348], ebp
mov dword [esp + 0x18], ebp
mov eax, dword [ebx + 0x668]
test eax, eax
je 0x410b6b
mov ecx, dword [ebx + 0x66c]
sub ecx, eax
mov eax, 0x5254e78f
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebp, edx
jae 0x410b6b
mov esi, dword [ebx + 0x668]
mov ecx, dword [esp + 0x18]
add esi, ecx
mov ecx, 0xc7
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x238]
test eax, eax
jne 0x410aee
cmp dword [esp + 0x230], 1
jne 0x410b58
mov eax, dword [esp + 0x234]
test eax, eax
jne 0x410b58
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push 0x450394
push edx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push str.SOFTWARE360Safeleakerror
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
inc edx
push 4
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
push ecx
push 4
push edx
push str.SOFTWARE360Safeleakerror
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov eax, dword [esp + 0x18]
inc ebp
add eax, 0x31c
mov dword [esp + 0x18], eax
jmp 0x410a88
lea ecx, [esp + 0x14]
mov dword [esp + 0x348], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x33c
ret