Function at 0x412a30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44d5bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bp
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, dword [0x463290]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edx
test eax, eax
je 0x412aeb
lea ecx, [esp + 0x14]
shr ecx, 0x10
jne 0x412ab7
xor eax, eax
lea edx, [esp + 0x14]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004050d0
jmp 0x412aeb
lea eax, [esp + 0x14]
push eax
call ebx
mov esi, eax
cmp esi, ebp
je 0x412aeb
push esi
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x412aeb
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, str.360SE.exe
mov dword [esp + 0x42c], ebp
test eax, eax
je 0x412b02
push str.360SE.exe
call ebx
push str.360SE.exe
push eax
lea ecx, [esp + 0x18]
call fcn.00404ff0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412b95
mov edx, str.1.0.0.0
test edx, edx
je 0x412b2e
push edx
call ebx
mov ebp, eax
mov ebx, dword [esp + 0x434]
push ebp
mov ecx, ebx
call fcn.00402f40
test eax, eax
je 0x412b69
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
mov esi, str.1.0.0.0
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412c60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412c60
jmp 0x412c50
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push 0x103
stosw word es:[edi], ax
lea eax, [esp + 0x220]
push eax
push ecx
call fcn.0040f070
lea edx, [esp + 0x228]
add esp, 0xc
test edx, edx
je 0x412be0
lea eax, [esp + 0x21c]
push eax
call ebx
mov ebp, eax
mov ebx, dword [esp + 0x434]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 1
jg 0x412bf4
cmp ebp, dword [eax - 4]
jle 0x412c07
mov ecx, ebx
call fcn.00402f00
push ebp
mov ecx, ebx
call fcn.00402e70
test eax, eax
je 0x412c31
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x21c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412c60
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412c60
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret