Function at 0x427960
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x463118
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.00428020
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [eax - 8], ebp
je 0x427cbf
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
jne 0x427aa7
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 0x427a24
mov eax, dword [esp + 0x28]
mov ebx, 1
cmp eax, ebx
jne 0x427a0d
push 3
push ebp
mov ecx, esi
call fcn.004292f0
mov dword [esi + 0xa48], ebx
jmp 0x427a7b
cmp eax, 2
jne 0x427a1c
push 4
push ebp
mov ecx, esi
call fcn.004292f0
mov dword [esi + 0xa48], ebx
jmp 0x427a7b
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 0x427a67
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x427aa7
push 4
push ebp
mov ecx, esi
call fcn.004292f0
mov dword [esi + 0xa48], 1
mov eax, dword [esp + 0x10]
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x427d02
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427d02
jmp 0x427cf2
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.00427d20
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 0x427b04
xor eax, eax
jmp 0x427b0b
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 0x427b40
xor eax, eax
jmp 0x427b47
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 0x427bc8
cmp dword [eax - 0xc], ebp
jge 0x427b98
mov edx, dword [0x46f430]
add eax, 0xfffffff4
cmp eax, edx
jne 0x427b9d
cmp dword [ecx - 0xc], ebp
jge 0x427bad
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004080a0
jmp 0x427bc8
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 0x427bd5
xor eax, eax
jmp 0x427bdc
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 0x427bf8
xor eax, eax
jmp 0x427bff
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
push 0x47b6a0
mov ecx, esi
call fcn.00442b00
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 0x427ca2
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x427ca2
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 0x427d02
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x427d02
jmp 0x427cf2
push 3
push ebp
mov ecx, esi
call fcn.004292f0
mov eax, dword [esp + 0x10]
mov dword [esi + 0xa48], 1
mov edx, dword [0x46f430]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x427d02
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427d02
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