Function at 0x47c230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b117
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4cc99c]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x4a79e8
push eax
lea eax, [ebp - 0x4c]
xor ebx, ebx
push eax
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x134], ebx
call fcn.0047bf10
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov edi, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x38], edi
jae 0x47c29e
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c2ae
test al, 0x10
je 0x47c311
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x47c2b9
lea eax, [ebp - 0x4c]
push eax
push 0x4ab4fc
push 0x4b02d0
push 0x15c
push str.hfgame::findHfgameRunExePath
push str.hfgame_filesystem.cpp
push 4
call fcn.0047d210
add esp, 0x1c
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push 0x4ab248
mov ecx, esi
call fcn.004027c0
cmp dword [ebp - 0x38], edi
jb 0x47c30a
mov edx, dword [ebp - 0x4c]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x47c6b0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0047a2c0
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], ebx
jne 0x47c3c4
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], edi
jae 0x47c339
lea eax, [ebp - 0x4c]
push eax
push 0x4ab4fc
push 0x4b0318
push 0x162
push str.hfgame::findHfgameRunExePath
push str.hfgame_filesystem.cpp
push 4
call fcn.0047d210
xor edx, edx
add esp, 0x1c
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
xor eax, eax
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47c371
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, esi
call fcn.004027c0
cmp dword [ebp - 0x1c], 0x10
jb 0x47c39b
mov eax, dword [ebp - 0x30]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], edi
jb 0x47c30a
mov ecx, dword [ebp - 0x4c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x47c6b0
mov dword [ebp - 0xa8], ebx
push 0x400
push ebx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00408890
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 5
jae 0x47c3fb
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
call fcn.004094b0
mov edi, 7
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0xb4]
push str.gameDir
push edx
mov byte [ebp - 4], 6
call fcn.00479f90
add esp, 0xc
cmp dword [ebp - 0x58], ebx
jne 0x47c4ec
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x47c45b
lea eax, [ebp - 0x30]
push eax
push 0x4ab4fc
push 0x4b0358
push 0x16d
push str.hfgame::findHfgameRunExePath
push str.hfgame_filesystem.cpp
push 4
call fcn.0047d210
add esp, 0x1c
push ebx
mov ecx, esi
call fcn.00402480
cmp dword [ebp - 0x54], 8
jb 0x47c499
mov eax, dword [ebp - 0x68]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov word [ebp - 0x68], cx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call fcn.00408500
cmp dword [ebp - 0x1c], 0x10
jb 0x47c4c2
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 0x38], 8
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
jb 0x47c30a
mov eax, dword [ebp - 0x4c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
jmp 0x47c6b0
xor ecx, ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], cx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0xb4]
push str.exePath
push eax
mov byte [ebp - 4], 7
call fcn.00479f90
add esp, 0xc
cmp dword [ebp - 0x74], ebx
jne 0x47c58c
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x47c52b
lea eax, [ebp - 0x30]
push eax
push 0x4ab4fc
push str.b_rN0Re
push 0x174
push str.hfgame::findHfgameRunExePath
push str.hfgame_filesystem.cpp
push 4
call fcn.0047d210
add esp, 0x1c
push ebx
mov ecx, esi
call fcn.00402480
lea ecx, [ebp - 0x84]
call fcn.004024d0
lea ecx, [ebp - 0x68]
call fcn.004024d0
lea ecx, [ebp - 0xa4]
call fcn.00408500
lea ecx, [ebp - 0x30]
call fcn.00403800
lea ecx, [ebp - 0x4c]
call fcn.004024d0
mov eax, esi
jmp 0x47c6b0
lea ecx, [ebp - 0x84]
push ecx
push 0x4adfcc
lea edx, [ebp - 0x68]
push edx
sub esp, 0x1c
lea eax, [ebp - 0x4c]
mov ecx, esp
mov dword [ebp - 0x12c], esp
push eax
call fcn.004083d0
lea ecx, [ebp - 0x124]
push ecx
call fcn.0047b8f0
add esp, 0x20
push eax
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 4], 8
call fcn.00408f80
add esp, 0xc
push eax
lea eax, [ebp - 0xec]
push eax
mov byte [ebp - 4], 9
call fcn.00408f20
add esp, 0xc
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov byte [ebp - 4], 0xa
call fcn.00408f80
add esp, 0xc
lea ecx, [ebp - 0xec]
call fcn.004024d0
lea ecx, [ebp - 0x108]
call fcn.004024d0
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0xe
call fcn.004024d0
lea eax, [ebp - 0xd0]
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.004085c0
lea ecx, [ebp - 0xd0]
call fcn.004024d0
jmp 0x47c557
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.00497792
mov esp, ebp
pop ebp
ret