Function at 0x471960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5717d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bh, dl
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test bh, bh
jne 0x471b20
mov ecx, 0x5ef9c8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4719d0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5ef9c8
lea ecx, [ebp - 0x40]
call fcn.0044a890
push 0xf
push 0x5dbbc0
lea ecx, [ebp - 0x40]
call fcn.0044fc90
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471a01
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044a890
push 0xf
push 0x5dbbc0
lea ecx, [ebp - 0x28]
call fcn.0044fc90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
setne bl
cmp dword [ebp - 0x14], 8
push 1
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
call fcn.00458fa0
add esp, 4
test bl, bl
jne 0x471a70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00458e60
mov ecx, 0x5ef9c8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471a80
sub ecx, edx
sar ecx, 1
push ecx
push 0x5ef9c8
lea ecx, [ebp - 0x40]
call fcn.0044a890
push 0x10
push str.Everything2.ini
lea ecx, [ebp - 0x40]
call fcn.0044fc90
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471ab1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044a890
push 0xf
push str.Everything.ini
lea ecx, [ebp - 0x28]
call fcn.0044fc90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
setne bl
cmp dword [ebp - 0x14], 8
push 1
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
call fcn.00458fa0
add esp, 4
test bl, bl
jne 0x471b20
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00458e60
mov ecx, esi
xor bl, bl
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471b27
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044a890
push 0xf
push 0x5dbbc0
lea ecx, [ebp - 0x28]
call fcn.0044fc90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x471c16
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 1
push 0x5d6db8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0044fc90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
call fcn.0044fc90
push 0xa
push str.___startup
lea ecx, [ebp - 0x58]
call fcn.0044fc90
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
push 0x2710
cmovae ecx, dword [ebp - 0x58]
mov edx, 5
xor eax, eax
test bh, bh
push 0
cmovne edx, eax
call fcn.0046c380
mov edx, dword [ebp - 0x44]
add esp, 8
test eax, eax
setne bl
cmp edx, 8
jb 0x471c2f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471c0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471ccd
push edx
push ecx
call fcn.0052cac7
jmp 0x471c2c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.____Cannot_find_everything_engine:__s_
call fcn.004612c0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x471c65
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471c5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471cd2
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x471caf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471ca5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471cd7
push edx
push ecx
call fcn.0052cac7
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 - 0x10]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
ret
call fcn.00548571
call fcn.00548571
call fcn.00548571
int3