Function at 0x47b760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d378
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5f6ea4]
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 0x47b920
mov ecx, 0x5fefa8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b7d0
sub ecx, edx
sar ecx, 1
push ecx
push 0x5fefa8
lea ecx, [ebp - 0x40]
call fcn.0044b740
push 0xf
push 0x5e8790
lea ecx, [ebp - 0x40]
call fcn.00452fa0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b801
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b740
push 0xf
push 0x5e8790
lea ecx, [ebp - 0x28]
call fcn.00452fa0
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.0045dcf0
add esp, 4
test bl, bl
jne 0x47b870
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0045dbb0
mov ecx, 0x5fefa8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b880
sub ecx, edx
sar ecx, 1
push ecx
push 0x5fefa8
lea ecx, [ebp - 0x40]
call fcn.0044b740
push 0x10
push str.Everything2.ini
lea ecx, [ebp - 0x40]
call fcn.00452fa0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b8b1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b740
push 0xf
push str.Everything.ini
lea ecx, [ebp - 0x28]
call fcn.00452fa0
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.0045dcf0
add esp, 4
test bl, bl
jne 0x47b920
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0045dbb0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b925
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b740
push 0xf
push 0x5e8790
lea ecx, [ebp - 0x28]
call fcn.00452fa0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x47ba14
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 1
push 0x5e3180
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00452fa0
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.00452fa0
push 0xa
push str.___startup
lea ecx, [ebp - 0x58]
call fcn.00452fa0
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.00475b90
mov edx, dword [ebp - 0x44]
add esp, 8
mov dword [0x5fdbb4], eax
cmp edx, 8
jb 0x47ba2d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ba0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bad5
push edx
push ecx
call fcn.00536da7
jmp 0x47ba2a
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.0046b090
add esp, 8
cmp dword [0x5fdbb4], 0
mov edx, dword [ebp - 0x14]
setne bl
cmp edx, 8
jb 0x47ba6d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ba63
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47bada
push edx
push ecx
call fcn.00536da7
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 0x47bab7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47baad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47badf
push edx
push ecx
call fcn.00536da7
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.00536b66
mov esp, ebp
pop ebp
ret
call fcn.00552841
call fcn.00552841
call fcn.00552841
int3