Function at 0x41f340
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x462768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x46f42c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebp, ebp
lea ecx, [esp + 0x10]
push ebp
push ecx
push esi
mov dword [esp + 0x24c], ebp
call fcn.0041f9f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [eax - 8], ebp
je 0x41f693
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x41f487
mov ecx, 0x47b770
call fcn.0040d0c0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
mov ecx, 0x47b770
call fcn.0040d5d0
mov ecx, 0x47b770
mov edi, eax
call fcn.0040d0f0
cmp edi, ebp
je 0x41f404
mov eax, dword [esp + 0x28]
mov ebx, 1
cmp eax, ebx
jne 0x41f3ed
push 3
push ebp
mov ecx, esi
call fcn.00420ca0
mov dword [esi + 0xa48], ebx
jmp 0x41f45b
cmp eax, 2
jne 0x41f3fc
push 4
push ebp
mov ecx, esi
call fcn.00420ca0
mov dword [esi + 0xa48], ebx
jmp 0x41f45b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bp
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebp
push eax
push ecx
push 0x104
push ebp
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebp
je 0x41f447
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x41f487
push 4
push ebp
mov ecx, esi
call fcn.00420ca0
mov dword [esi + 0xa48], 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f6d6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f6d6
jmp 0x41f6c6
mov dword [esi + 0x1454], ebp
mov eax, dword [0x46f42c]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov ecx, esi
mov byte [esp + 0x244], bl
call fcn.0041f6f0
mov edx, dword [esp + 0x10]
add esi, 0x3e8
push edx
mov ecx, esi
call fcn.00441970
mov eax, dword [0x46f42c]
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, str.safebox_inject
test ecx, ecx
mov byte [esp + 0x240], 2
jne 0x41f4e4
xor eax, eax
jmp 0x41f4eb
push str.safebox_inject
call edi
push str.safebox_inject
push eax
lea ecx, [esp + 0x20]
call fcn.004080a0
mov eax, dword [0x46f42c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, str.safebox
mov byte [esp + 0x240], 6
test edx, edx
jne 0x41f520
xor eax, eax
jmp 0x41f527
push str.safebox
call edi
push str.safebox
push eax
lea ecx, [esp + 0x24]
call fcn.004080a0
push 0x473810
lea ecx, [esp + 0x24]
call fcn.004217b0
push 0x47a15c
lea ecx, [esp + 0x28]
call fcn.00407430
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
mov byte [esp + 0x240], 7
je 0x41f5a8
cmp dword [eax - 0xc], ebp
jge 0x41f578
mov edx, dword [0x46f430]
add eax, 0xfffffff4
cmp eax, edx
jne 0x41f57d
cmp dword [ecx - 0xc], ebp
jge 0x41f58d
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004080a0
jmp 0x41f5a8
lea ecx, [esp + 0x24]
call fcn.004083e0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, str.SafeboxTray
test ecx, ecx
jne 0x41f5b5
xor eax, eax
jmp 0x41f5bc
push str.SafeboxTray
call edi
push str.SafeboxTray
push eax
lea ecx, [esp + 0x28]
call fcn.004080a0
mov edx, str.safebox_prescan
test edx, edx
jne 0x41f5d8
xor eax, eax
jmp 0x41f5df
push str.safebox_prescan
call edi
push str.safebox_prescan
push eax
lea ecx, [esp + 0x20]
call fcn.004080a0
push 0x1388
mov ecx, esi
call fcn.00442ae0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00442ba0
mov ecx, esi
call fcn.00441a60
lea ecx, [esp + 0x24]
mov byte [esp + 0x240], 3
call fcn.00408010
lea ecx, [esp + 0x20]
call fcn.00408010
lea ecx, [esp + 0x1c]
call fcn.00408010
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], bl
call fcn.00408010
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46f430]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41f676
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41f676
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f6d6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41f6d6
jmp 0x41f6c6
push 3
push ebp
mov ecx, esi
call fcn.00420ca0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa48], 1
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41f6d6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41f6d6
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret