Function at 0x474230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5745f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5ebea4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, dl
mov byte [ebp - 0x5d], al
mov esi, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [edi], ecx
test al, al
jne 0x4743fa
mov ecx, 0x5f2a08
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4742a6
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f2a08
lea ecx, [ebp - 0x44]
call fcn.0044a910
push 0xf
push 0x5dee20
lea ecx, [ebp - 0x44]
call fcn.00451c60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4742d7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a910
push 0xf
push 0x5dee20
lea ecx, [ebp - 0x2c]
call fcn.00451c60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
setne bl
cmp dword [ebp - 0x18], 8
push 1
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
call fcn.0045b640
add esp, 4
test bl, bl
jne 0x474346
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0045b500
mov ecx, 0x5f2a08
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474350
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f2a08
lea ecx, [ebp - 0x44]
call fcn.0044a910
push 0x10
push str.Everything2.ini
lea ecx, [ebp - 0x44]
call fcn.00451c60
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474381
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a910
push 0xf
push str.Everything.ini
lea ecx, [ebp - 0x2c]
call fcn.00451c60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
setne bl
cmp dword [ebp - 0x18], 8
push 1
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
call fcn.0045b640
add esp, 4
test bl, bl
jne 0x4743f4
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0045b500
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474400
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a910
push 0xf
push 0x5dee20
lea ecx, [ebp - 0x2c]
call fcn.00451c60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x4744ed
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
push 1
push 0x5d9f40
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00451c60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.00451c60
push 0xa
push str.___startup
lea ecx, [ebp - 0x5c]
call fcn.00451c60
cmp dword [ebp - 0x48], 8
lea ecx, [ebp - 0x5c]
push 0x2710
cmovae ecx, dword [ebp - 0x5c]
mov edx, 5
xor eax, eax
cmp byte [ebp - 0x5d], al
push 0
cmovne edx, eax
call fcn.0046ec60
mov edx, dword [ebp - 0x48]
add esp, 8
mov dword [edi], eax
cmp edx, 8
jb 0x474506
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4744e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4745aa
push edx
push ecx
call fcn.0052f5d6
jmp 0x474503
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.____Cannot_find_everything_engine:__s_
call fcn.00463ab0
add esp, 8
cmp dword [edi], 0
mov edx, dword [ebp - 0x18]
setne bl
cmp edx, 8
jb 0x474542
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474538
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4745af
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x47458c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x474582
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4745b4
push edx
push ecx
call fcn.0052f5d6
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052f395
mov esp, ebp
pop ebp
ret
call fcn.0054b071
call fcn.0054b071
call fcn.0054b071
int3