Function at 0x41c270
Capabilities:
Check if file exists
Resolve function by parsing pe exports
Set registry value
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4249e0
push eax
mov dword fs:[0], esp
sub esp, 0x97c
push ebx
push ebp
push esi
push edi
push str.NoNotiLeak
call fcn.0041b6e0
test eax, eax
je 0x41c87a
lea eax, [esp + 0x54]
push 4
push eax
push 4
push str.LeakShowed
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x6c], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor edi, edi
push 0xc
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], edi
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x38], esi
cmp esi, edi
mov dword [esp + 0x994], edi
je 0x41c449
lea ebp, [esi + 4]
mov dword [ebp], edi
lea ebx, [esi + 8]
mov dword [ebx], edi
mov cx, word [0x42f1ac]
xor eax, eax
mov word [esp + 0x16c], cx
mov ecx, 0x81
lea edi, [esp + 0x16e]
push str.LeakCheck.dll
rep stosd dword es:[edi], eax
lea edx, [esp + 0x170]
push 0x104
push edx
mov byte [esp + 0x9a0], 2
stosw word es:[edi], ax
call fcn.00405320
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x382]
mov word [esp + 0x380], dx
mov word [esp + 0x588], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x58a]
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x384]
lea ecx, [esp + 0x17c]
push eax
push ecx
call fcn.00404e00
add esp, 0x18
lea edx, [esp + 0x374]
lea eax, [esp + 0x57c]
push edx
push 0x208
push eax
call fcn.0041d1b0
lea ecx, [esp + 0x57c]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
test eax, eax
je 0x41c3c4
mov word [eax], 0
lea edx, [esp + 0x57c]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edi, eax
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c443
lea ecx, [esp + 0x374]
push str.4.1.0.1001
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jge 0x41c408
cmp edi, 4
jle 0x41c443
push ebp
push 0x427918
push 0
push 0
lea edx, [esp + 0x17c]
push 0x427978
push edx
call fcn.0040e280
push ebx
push 0x427958
push 0
push 0
lea eax, [esp + 0x194]
push 0x4279b8
push eax
call fcn.0040e280
add esp, 0x30
mov dword [esp + 0x2c], esi
jmp 0x41c44f
mov dword [esp + 0x2c], edi
mov esi, edi
mov cx, word [0x42f1ac]
mov dl, byte [esp + 0x17]
mov word [esp + 0x784], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x786]
rep stosd dword es:[edi], eax
xor ebx, ebx
mov byte [esp + 0x3c], dl
stosw word es:[edi], ax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov al, byte [esp + 0x17]
mov dword [esp + 0x994], 3
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov cl, byte [0x42f1b0]
xor eax, eax
mov byte [esp + 0x68], cl
mov ecx, 0x40
lea edi, [esp + 0x69]
mov byte [esp + 0x994], 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x38], ebx
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.leakinfo2.dat
lea edx, [esp + 0x788]
push 0x208
push edx
push eax
call fcn.00405200
lea eax, [esp + 0x794]
push 0x42e9c8
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x41c5a1
mov esi, dword [sym.imp.MSVCRT.dll_fgets]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x6c]
push 0x103
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x41c593
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
lea edx, [esp + 0x68]
push 0xd
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x41c54f
mov byte [eax], 0
lea eax, [esp + 0x68]
push eax
call ebx
mov edx, dword [esp + 0x48]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0041cc20
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x68]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
push 0x103
push eax
call esi
add esp, 0xc
test eax, eax
jne 0x41c538
xor ebx, ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x30]
add esp, 4
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41c5b3
mov ecx, dword [eax]
lea edx, [esp + 0x50]
push edx
push eax
call dword [ecx + 0x10]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x41c5c6
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ebx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
je 0x41c6a7
mov eax, dword [ecx + 8]
cmp eax, 1
je 0x41c5f0
cmp eax, 2
je 0x41c5f0
cmp dword [ecx + 0x3c], ebx
jne 0x41c677
mov dword [esp + 0x4c], ebx
mov eax, dword [esi + 8]
mov edx, dword [ecx]
cmp eax, ebx
je 0x41c622
mov ecx, dword [eax]
lea esi, [esp + 0x4c]
push esi
push edx
push eax
call dword [ecx + 0x30]
cmp dword [esp + 0x4c], ebx
je 0x41c61e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], eax
jmp 0x41c626
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
xor eax, eax
mov edx, edi
cmp edi, ebx
je 0x41c64d
mov ebp, esi
sub ebp, edi
sar ebp, 2
cmp eax, ebp
jae 0x41c64d
mov ebp, dword [edx]
cmp ebp, dword [ecx]
je 0x41c664
inc eax
add edx, 4
jmp 0x41c632
push ecx
push esi
lea ecx, [esp + 0x44]
call fcn.0041cc20
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.0041cc20
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 8]
inc edx
cmp eax, ebx
mov dword [esp + 0x34], edx
je 0x41c6a7
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
jne 0x41c5da
cmp esi, ebx
je 0x41c6bb
mov ecx, esi
call fcn.0041bd90
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0041cdc0
cmp dword [esp + 0x30], ebx
jle 0x41c84d
cmp dword [esp + 0x38], ebx
je 0x41c84d
lea edx, [esp + 0x784]
push 0x42d6a0
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x41c761
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
xor esi, esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41c755
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x41c755
mov edx, dword [eax + esi*4]
lea eax, [esp + 0x68]
push edx
push str._d_r_n
push 0x103
push eax
call fcn.004065b0
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x80]
push 1
push ecx
call ebx
add esp, 0x20
inc esi
jmp 0x41c706
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor ebx, ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
push eax
call fcn.0041d120
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push eax
push esi
call fcn.00420a30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x50]
mov dword [esp + 0x24], esi
test eax, eax
lea ebp, [ecx + edx]
je 0x41c84d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x240
push 0x40
call edi
mov esi, eax
cmp esi, ebx
je 0x41c84d
lea ecx, [esp + 0x50]
test ecx, ecx
je 0x41c7dc
push 4
push ebx
call edi
cmp eax, ebx
je 0x41c846
mov dword [eax], ebp
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], 4
lea edx, [esp + 0x58]
mov edi, 2
push edx
mov dword [esi], 0x240
mov dword [esi + 8], 5
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esi + 0x14]
lea ecx, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [esi + 0x10], edi
mov dword [esi + 0x22c], 8
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.MFC42u.DLL_operatordelete
add esp, 8
mov eax, esi
jmp 0x41c87c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x20]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x994], 0xffffffff
call fcn.0041cbf0
xor eax, eax
mov ecx, dword [esp + 0x98c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x988
ret