Function at 0x47b4e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d0b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5f5ea4]
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 0x47b6a0
mov ecx, 0x5fdfa8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b550
sub ecx, edx
sar ecx, 1
push ecx
push 0x5fdfa8
lea ecx, [ebp - 0x40]
call fcn.0044b730
push 0xf
push 0x5e7680
lea ecx, [ebp - 0x40]
call fcn.00452f50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b581
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b730
push 0xf
push 0x5e7680
lea ecx, [ebp - 0x28]
call fcn.00452f50
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.0045d9f0
add esp, 4
test bl, bl
jne 0x47b5f0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0045d8b0
mov ecx, 0x5fdfa8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b600
sub ecx, edx
sar ecx, 1
push ecx
push 0x5fdfa8
lea ecx, [ebp - 0x40]
call fcn.0044b730
push 0x10
push str.Everything2.ini
lea ecx, [ebp - 0x40]
call fcn.00452f50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b631
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b730
push 0xf
push str.Everything.ini
lea ecx, [ebp - 0x28]
call fcn.00452f50
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.0045d9f0
add esp, 4
test bl, bl
jne 0x47b6a0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0045d8b0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b6a5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044b730
push 0xf
push 0x5e7680
lea ecx, [ebp - 0x28]
call fcn.00452f50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x47b794
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
push 1
push 0x5e2140
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.00452f50
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.00452f50
push 0xa
push str.___startup
lea ecx, [ebp - 0x58]
call fcn.00452f50
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.00475a10
mov edx, dword [ebp - 0x44]
add esp, 8
mov dword [0x5fcbb0], eax
cmp edx, 8
jb 0x47b7ad
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b78b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b855
push edx
push ecx
call fcn.00536ae6
jmp 0x47b7aa
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.0046adc0
add esp, 8
cmp dword [0x5fcbb0], 0
mov edx, dword [ebp - 0x14]
setne bl
cmp edx, 8
jb 0x47b7ed
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b7e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b85a
push edx
push ecx
call fcn.00536ae6
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 0x47b837
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b82d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b85f
push edx
push ecx
call fcn.00536ae6
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.005368a5
mov esp, ebp
pop ebp
ret
call fcn.00552581
call fcn.00552581
call fcn.00552581
int3