Function at 0x403b57
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46a0ea
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x480244]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
push str.kxetray.exe
lea eax, [esp + 0x24]
xor esi, esi
push eax
mov dword [esp + 0x18], esi
call fcn.00401673
push str.kscan.exe
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x68], esi
call fcn.00401673
push str.kxescore.exe
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x68], 1
call fcn.00401673
push 0x472000
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x68], 2
call fcn.00401673
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x64], 4
call fcn.004038ca
mov ebx, dword [esp + 0x4c]
pop ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x34]
call fcn.00404a96
jmp 0x403d4c
lea esi, [esp + 0x34]
call fcn.0040477a
push dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x403d43
call fcn.0040477a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00404433
pop ecx
pop ecx
mov byte [esp + 0x60], 5
push dword [eax]
or dword [esp + 0x14], 1
call edi
test eax, eax
je 0x403cd1
call fcn.0040477a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00404433
pop ecx
pop ecx
mov dword [esp + 0x60], 6
push dword [eax]
or dword [esp + 0x14], 2
call edi
test eax, eax
je 0x403cd1
call fcn.0040477a
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00404433
pop ecx
pop ecx
mov dword [esp + 0x60], 7
push dword [eax]
or dword [esp + 0x14], 4
call edi
test eax, eax
je 0x403cd1
call fcn.0040477a
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.00404433
or dword [esp + 0x18], 8
pop ecx
pop ecx
push dword [eax]
call edi
test eax, eax
je 0x403cd1
mov bl, 1
jmp 0x403cd3
xor bl, bl
test byte [esp + 0x10], 8
je 0x403ceb
mov eax, dword [esp + 0x24]
and dword [esp + 0x10], 0xfffffff7
add eax, 0xfffffff0
call fcn.004023f7
test byte [esp + 0x10], 4
je 0x403d03
mov eax, dword [esp + 0x28]
and dword [esp + 0x10], 0xfffffffb
add eax, 0xfffffff0
call fcn.004023f7
test byte [esp + 0x10], 2
je 0x403d1b
mov eax, dword [esp + 0x2c]
and dword [esp + 0x10], 0xfffffffd
add eax, 0xfffffff0
call fcn.004023f7
mov dword [esp + 0x60], 4
test byte [esp + 0x10], 1
je 0x403d3b
mov eax, dword [esp + 0x30]
and dword [esp + 0x10], 0xfffffffe
add eax, 0xfffffff0
call fcn.004023f7
test bl, bl
jne 0x403dcc
lea esi, [esp + 0x34]
call fcn.00404797
mov ebx, dword [esp + 0x4c]
lea edi, [esp + 0x44]
lea esi, [esp + 0x3c]
call fcn.00404a96
mov edi, esi
lea esi, [esp + 0x34]
call fcn.004047b7
test al, al
je 0x403c05
push 0x4713dc
push dword [ebp + 8]
call fcn.00401673
lea esi, [esp + 0x44]
call fcn.0040472a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004023f7
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x34]
call fcn.0040477a
push dword [ebp + 8]
mov ecx, eax
call fcn.00404484
pop ecx
jmp 0x403d7d