Function at 0x413de0
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x14], xmm0
mov eax, dword [esi]
lea ebx, [esi + 0x38]
push ebx
push str._VALT___s_is_reviving_vault_data.
push 1
push dword [eax]
call fcn.00401210
mov ecx, dword [esi + 0x7c]
add esp, 0x10
mov dword [esi + 0x18], 2
test ecx, ecx
je 0x413e4a
add dword [ecx + 0x78], 0xffffffff
jne 0x413e4a
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [edx]
push 0
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
mov edi, dword [esi + 0x80]
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x413e93
cmp dword [ecx + 0x7c], 0
mov eax, dword [ecx + 0x78]
je 0x413ed8
add eax, 0xffffffff
mov dword [ecx + 0x78], eax
jne 0x413e8a
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [edx]
push 0
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
mov dword [edi + 0x1c], 0
xor ecx, ecx
mov edx, dword [edi + 0x18]
test edx, edx
je 0x413ead
mov ecx, dword [edi]
call fcn.00405470
mov ecx, eax
test ecx, ecx
je 0x413ead
mov dword [edi + 0x1c], ecx
inc dword [ecx + 0x78]
cmp dword [esi + 0x60], 0
mov dword [esi + 0x7c], ecx
jne 0x413ef7
mov edx, dword [esi]
mov eax, dword [edx + 8]
cmp dword [eax + 0x1c], 0
je 0x413ef7
test ecx, ecx
je 0x413ef7
cmp dword [ecx + 8], 0
je 0x413ede
cmp dword [eax + 0x24], 0
jne 0x413ede
mov eax, 1
jmp 0x413ee0
inc eax
mov dword [ecx + 0x78], eax
jmp 0x413ead
xor eax, eax
push 0
push eax
push ebx
push str._VALT___s_will_be_monitored:_mdata__d__hlink__d.
push 2
push dword [edx]
call fcn.00401210
add esp, 0x18
jmp 0x413f0b
mov eax, dword [esi]
push ebx
push str._VALT___s_will_not_be_monitored.
push 2
push dword [eax]
call fcn.00401210
add esp, 0x10
cmp dword [esi + 0x90], 0
je 0x414168
mov eax, dword [esi + 0x9c]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
movlpd qword [ebp - 0x40], xmm0
mov edi, dword [eax]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x41c]
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x413f65
mov edi, 0x4479a8
mov dword [ebp - 0xc], eax
jmp 0x414028
xor eax, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
test eax, eax
jne 0x413f7c
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
jmp 0x414028
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x4c], 0
push ecx
push dword [edi + 0x41c]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
push eax
push dword [edi + 0x414]
movlpd qword [ebp - 0x54], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413fda
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xa0
cmove eax, ecx
mov ecx, eax
call fcn.0041b480
mov edi, eax
mov dword [ebp - 0xc], 0
jmp 0x413fff
cmp dword [ebp - 0x20], 0
jne 0x413ff5
mov ecx, 0x26
call fcn.0041b480
mov edi, eax
mov dword [ebp - 0xc], 0
jmp 0x413fff
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov edx, dword [ecx]
mov eax, dword [ecx + 0x41c]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [edx]
push 0
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
test edi, edi
je 0x41403b
mov ecx, dword [edi]
mov eax, dword [ecx]
add eax, edi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x41409a
cmp dword [esi + 0x90], 0
je 0x414086
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x414059
call fcn.00405cd0
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x414068
call fcn.00405cd0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x90], 0
mov eax, dword [esi]
push ebx
push str._RV_____s_db_handles_were_invalidated_by_remount__re_opening.
push 2
push dword [eax]
call fcn.00401210
add esp, 0x10
cmp dword [esi + 0x90], 0
je 0x414168
mov eax, dword [esi + 0x9c]
xor edi, edi
test eax, eax
je 0x4140c7
mov eax, dword [eax]
mov ecx, 1
cmp dword [eax + 0x428], 0x3e9
cmove edi, ecx
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x4140e2
mov eax, dword [eax]
cmp dword [eax + 0x428], 0x3e9
jne 0x4140e2
or edi, 2
test edi, edi
je 0x414210
mov eax, dword [esi]
push edi
push ebx
push str._RV_____s_db_was_corrupted___s___recreating.
push 1
push dword [eax]
call fcn.00401210
add esp, 0x14
cmp dword [esi + 0x90], 0
je 0x414144
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x414117
call fcn.00405cd0
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x414126
call fcn.00405cd0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0x90], 0
mov edx, dword [esi + 0x80]
lea ecx, [esi + 0x98]
push edi
push 0
mov eax, dword [edx + 0x14]
mov edx, dword [edx + 0x10]
dec eax
push eax
call fcn.0040f5b0
add esp, 0xc
jmp 0x414210
cmp dword [esi + 0x60], 0
jne 0x4141a7
mov eax, dword [esi]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x1c], 0
je 0x4141a7
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4141a7
cmp dword [eax + 8], 0
je 0x4141a7
cmp dword [ecx + 0x24], 0
jne 0x4141a7
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push 1
lea ecx, [esi + 0x88]
call fcn.0040bad0
mov edi, dword [ebp - 0x10]
add esp, 8
jmp 0x4141ef
lea eax, [ebp - 0x14]
mov edx, esi
push eax
push 0
lea ecx, [esi + 0x88]
call fcn.0040bad0
mov ecx, dword [esi]
add esp, 8
mov ecx, dword [ecx]
push ebx
test eax, eax
je 0x4141db
push str._RV_____s_db_is_accessible_as_read_only.
push 2
push ecx
call fcn.00401210
mov edi, dword [ebp - 0x10]
add esp, 0x10
jmp 0x4141ef
mov edi, dword [ebp - 0x10]
push edi
push str._RV_____s_db_is_not_accessible.
push 2
push ecx
call fcn.00419c50
add esp, 0x14
mov dword [ebp - 0x14], 0
test edi, edi
je 0x414210
mov ecx, dword [edi]
mov eax, dword [ecx]
add eax, edi
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [esi + 0x90], 0
mov dword [esi + 0x278], 0
je 0x4142cd
cmp dword [esi + 0xc8], 0
jne 0x4142cd
mov eax, dword [esi]
lea edi, [esi + 0x148]
mov dword [esi + 0x278], 1
lea ebx, [edi + 0x74]
mov eax, dword [eax]
mov dword [edi + 8], eax
mov dword [edi], 0
test ebx, ebx
je 0x41427b
mov dword [ebx], 0
mov edx, dword [ebx + 4]
test edx, edx
je 0x41427b
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [ebx + 4], 0
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 4]
mov dword [edi + 0x6c], eax
mov dword [edi + 0x64], 0x414310
mov dword [edi + 0x68], esi
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0xc]
mov dword [edi + 0x28], eax
lea eax, [edi + 0x70]
mov dword [edi + 0x24], eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x40f8e0
push 0
push 0
mov dword [edi + 0x20], 0x41ec00
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4142c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4142cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x278], 0
mov dword [esi + 0x1c], 3
jne 0x4142fb
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi]
push str._VALT___s_left_reviving_state.
push 1
push dword [eax]
call fcn.00401210
add esp, 0x10
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425576
mov esp, ebp
pop ebp
ret