Function at 0x41b730
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 0x424930
push eax
mov dword fs:[0], esp
sub esp, 0xdb4
push ebx
push ebp
push esi
push edi
push str.NoNotiLeak
call fcn.0041b6e0
test eax, eax
je 0x41bd75
call fcn.00404d30
test eax, eax
jne 0x41bd75
lea eax, [esp + 0x58]
push 4
push eax
push 4
push str.LeakShowed
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x70], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ebx, ebx
push 0xc
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov dword [esp + 0xdcc], ebx
je 0x41b90f
lea ebp, [esi + 4]
mov dword [ebp], ebx
mov dword [esi + 8], ebx
mov cx, word [0x42f1ac]
xor eax, eax
mov word [esp + 0x164], cx
mov ecx, 0x81
lea edi, [esp + 0x166]
push str.LeakCheck.dll
rep stosd dword es:[edi], eax
lea edx, [esp + 0x168]
push 0x104
push edx
mov byte [esp + 0xdd8], 2
stosw word es:[edi], ax
call fcn.00405320
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x37a]
mov word [esp + 0x378], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x78a]
mov word [esp + 0x788], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x378]
push 0x103
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.00404e00
add esp, 0x18
lea edx, [esp + 0x36c]
lea eax, [esp + 0x77c]
push edx
push 0x208
push eax
call fcn.0041d1b0
lea ecx, [esp + 0x77c]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
cmp eax, ebx
je 0x41b88b
mov word [eax], bx
lea edx, [esp + 0x77c]
push edx
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov edi, eax
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b909
lea ecx, [esp + 0x36c]
push str.4.1.0.1001
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jge 0x41b8cf
cmp edi, 4
jle 0x41b909
push ebp
push 0x427918
push ebx
push ebx
lea edx, [esp + 0x174]
push 0x427978
push edx
call fcn.0040e280
lea eax, [esi + 8]
push eax
push 0x427958
push ebx
push ebx
lea eax, [esp + 0x18c]
push 0x4279b8
push eax
call fcn.0040e280
add esp, 0x30
mov dword [esp + 0x2c], esi
jmp 0x41b913
mov dword [esp + 0x2c], ebx
mov cx, word [0x42f1ac]
mov dl, byte [esp + 0x13]
mov word [esp + 0x574], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x576]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x30], dl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov al, byte [esp + 0x13]
mov dword [esp + 0xdcc], 3
mov byte [esp + 0x1c], al
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0xdcc], 4
mov dword [esp + 0x44], ebx
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push str.leakinfo.dat
lea ecx, [esp + 0x578]
push 0x208
push ecx
push eax
call fcn.00405200
lea edx, [esp + 0x584]
push 0x42e9c8
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x18
cmp ebp, ebx
je 0x41ba40
mov esi, dword [sym.imp.MSVCRT.dll_fgets]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x64]
push 0x103
push eax
call esi
add esp, 0xc
test eax, eax
je 0x41ba36
lea ecx, [esp + 0x60]
push 0xd
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
cmp eax, ebx
je 0x41b9f0
mov byte [eax], bl
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0041cc20
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x60]
push ebp
lea edx, [esp + 0x64]
push 0x103
rep stosd dword es:[edi], eax
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x41b9da
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x10
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x41ba61
mov cl, byte [esp + 0x13]
mov dword [eax + 4], ebx
mov byte [eax], cl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ebp, eax
jmp 0x41ba63
xor ebp, ebp
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41ba7b
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [edx + 0xc]
jmp 0x41ba83
mov dword [esp + 0x5c], 4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41ba96
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41bb80
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
xor ecx, ecx
cmp dword [esp + 0x34], ebx
je 0x41bacc
mov esi, edi
sub esi, dword [esp + 0x34]
sar esi, 2
cmp ecx, esi
jae 0x41bacc
mov esi, dword [edx]
cmp esi, dword [eax + 4]
je 0x41baee
inc ecx
add edx, 4
jmp 0x41baac
mov edx, dword [eax + 4]
lea eax, [esp + 0x40]
push eax
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x48], edx
call fcn.0041cc20
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], 1
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ecx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0041cc20
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x984]
mov eax, dword [ecx + 0x10]
push eax
push 0x40
push edx
call fcn.00413dc0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x9c4]
mov eax, dword [eax + 8]
push eax
push 0x400
push ecx
call fcn.00413dc0
mov eax, dword [ebp + 8]
lea edx, [esp + 0x984]
push edx
push eax
mov ecx, ebp
call fcn.0041ce00
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
inc edx
mov eax, dword [esi + 4]
mov dword [esp + 0x18], edx
cmp eax, ebx
je 0x41bb80
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41baa2
cmp esi, ebx
je 0x41bb94
mov ecx, esi
call fcn.0041bd90
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0041cdc0
cmp dword [esp + 0x18], ebx
jle 0x41bd12
cmp dword [esp + 0x44], ebx
je 0x41bd12
lea edx, [esp + 0x574]
push 0x42d6a0
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x48], edi
je 0x41bc3b
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x41bc31
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x41bc31
mov edx, dword [eax + esi*4]
lea eax, [esp + 0x60]
push edx
push str._d_r_n
push 0x103
push eax
call fcn.004065b0
push edi
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x78]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [esp + 0x68]
add esp, 0x20
inc esi
jmp 0x41bbdd
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0041cdc0
lea ecx, [esp + 0x48]
test ecx, ecx
je 0x41bd48
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x240
push 0x40
call edi
mov esi, eax
cmp esi, ebx
je 0x41bd48
lea edx, [esp + 0x48]
test edx, edx
je 0x41bca3
push 8
push ebx
call edi
cmp eax, ebx
je 0x41bd09
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], ebp
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], 8
lea eax, [esp + 0x48]
mov ebp, 2
push eax
mov dword [esi], 0x240
mov dword [esi + 8], ebp
mov dword [esi + 4], 1
mov dword [esi + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [esi + 0x14]
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [esi + 0x10], ebp
mov dword [esi + 0x22c], 8
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.MFC42u.DLL_operatordelete
add esp, 8
mov eax, esi
jmp 0x41bd77
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41bd48
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push ecx
push eax
push eax
call fcn.0041d150
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push esi
call fcn.00420a30
cmp ebp, ebx
mov dword [ebp + 8], esi
je 0x41bd48
mov ecx, ebp
call fcn.0041cbf0
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0xdcc], 0xffffffff
call fcn.0041cbf0
xor eax, eax
mov ecx, dword [esp + 0xdc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc0
ret