Function at 0x473ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573d38
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5eaea4]
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 0x473c9a
mov ecx, 0x5f19e8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473b46
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f19e8
lea ecx, [ebp - 0x44]
call fcn.0044a8b0
push 0xf
push 0x5dde70
lea ecx, [ebp - 0x44]
call fcn.00451c00
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473b77
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a8b0
push 0xf
push 0x5dde70
lea ecx, [ebp - 0x2c]
call fcn.00451c00
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.0045b010
add esp, 4
test bl, bl
jne 0x473be6
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0045aed0
mov ecx, 0x5f19e8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473bf0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5f19e8
lea ecx, [ebp - 0x44]
call fcn.0044a8b0
push 0x10
push str.Everything2.ini
lea ecx, [ebp - 0x44]
call fcn.00451c00
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x473c21
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a8b0
push 0xf
push str.Everything.ini
lea ecx, [ebp - 0x2c]
call fcn.00451c00
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.0045b010
add esp, 4
test bl, bl
jne 0x473c94
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0045aed0
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 0x473ca0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a8b0
push 0xf
push 0x5dde70
lea ecx, [ebp - 0x2c]
call fcn.00451c00
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x473d8d
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
push 1
push 0x5d8fb0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00451c00
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.00451c00
push 0xa
push str.___startup
lea ecx, [ebp - 0x5c]
call fcn.00451c00
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.0046e500
mov edx, dword [ebp - 0x48]
add esp, 8
mov dword [edi], eax
cmp edx, 8
jb 0x473da6
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473d84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e4a
push edx
push ecx
call fcn.0052edf8
jmp 0x473da3
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.00463390
add esp, 8
cmp dword [edi], 0
mov edx, dword [ebp - 0x18]
setne bl
cmp edx, 8
jb 0x473de2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473dd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e4f
push edx
push ecx
call fcn.0052edf8
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 0x473e2c
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x473e22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x473e54
push edx
push ecx
call fcn.0052edf8
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.0052ebb7
mov esp, ebp
pop ebp
ret
call fcn.0054a8a1
call fcn.0054a8a1
call fcn.0054a8a1
int3