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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ffe2
mov eax, dword fs:[0]
push eax
sub esp, 0x3e4
mov eax, dword [0x5c6150]
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 ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x298]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c8], eax
call fcn.0044fd40
push 1
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x294], 0
call fcn.00450b00
cmp byte [ebp - 0x17c], 0
lea eax, [ebp - 0x28c]
cmove eax, dword [ebp - 0x290]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x3c0]
call fcn.0044fd40
push 1
lea ecx, [ebp - 0x3b8]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x3bc], 0
call fcn.00450b00
cmp byte [ebp - 0x2a4], 0
lea eax, [ebp - 0x3b4]
cmove eax, dword [ebp - 0x3b8]
xor ecx, ecx
mov word [eax + 4], cx
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
cmp eax, vtable.t_runtime.0
jne 0x45a50c
lea eax, [ebx + 0x18]
cmp byte [ebx + 0x128], cl
jne 0x45a24d
mov eax, dword [ebx + 0x14]
add eax, 4
lea ecx, [ebp - 0x298]
push eax
call fcn.0044ff70
cmp dword [ebp - 0x294], 0
je 0x45a36f
push 0
push 0
push 0
push 0
push 0
push str.runtime.ini
lea ecx, [ebp - 0x138]
call fcn.00451610
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x298]
cmove eax, dword [ebp - 0x130]
cmp word [eax + 4], 0x2e
lea eax, [ebp - 0x138]
push eax
jne 0x45a2af
call fcn.004527a0
jmp 0x45a2b4
call fcn.00451c90
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x45a2dd
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x45a2dd
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebx + 0x128], 0
lea eax, [ebx + 0x18]
jne 0x45a2ec
mov eax, dword [ebx + 0x14]
add eax, 4
lea ecx, [ebp - 0x3c0]
push eax
call fcn.0044ff70
push 0
push 0
push 0
push 0
push 0
push str.sgim_gl.bin
lea ecx, [ebp - 0x138]
call fcn.00451610
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x3c0]
cmove eax, dword [ebp - 0x130]
cmp word [eax + 4], 0x2e
lea eax, [ebp - 0x138]
push eax
jne 0x45a341
call fcn.004527a0
jmp 0x45a346
call fcn.00451c90
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], vtable.t_str.0
jne 0x45a36f
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x45a36f
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x17c], 0
lea eax, [ebp - 0x28c]
mov byte [ebp - 0x3c1], 1
cmove eax, dword [ebp - 0x290]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a6b4
shr eax, 4
not al
and al, 1
je 0x45a6b4
cmp byte [ebx + 0xad8], 0
lea ecx, [ebp - 0x170]
sete al
movzx eax, al
push eax
call fcn.00469fd0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28c]
cmp byte [ebp - 0x17c], 0
lea ecx, [ebp - 0x170]
cmove eax, dword [ebp - 0x290]
add eax, 4
push eax
call fcn.0046bd50
cmp dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
setne al
test ecx, ecx
mov byte [ebx + 0x21c1], al
setne al
mov byte [ebx + 0x21c0], al
test ecx, ecx
je 0x45a456
call fcn.0045b4c0
mov byte [ebp - 0x3c2], al
call fcn.00464730
test al, al
je 0x45a43e
call esi
push str.initruntime_safeapi
push eax
call fcn.0046ef50
mov ecx, eax
call fcn.0046f0d0
mov ecx, eax
call fcn.0046f440
mov cl, byte [ebp - 0x3c2]
call fcn.00469c70
push str.initruntime_safeapi
call fcn.004645d0
add esp, 4
call fcn.00464730
test al, al
je 0x45a47a
call esi
push str.initruntime_SetProcessShortName
push eax
call fcn.0046ef50
mov ecx, eax
call fcn.0046f0d0
mov ecx, eax
call fcn.0046f440
mov eax, dword [ebp - 0x3c8]
mov ecx, ebx
push edi
mov byte [eax], 1
call fcn.00459240
neg al
push str.initruntime_SetProcessShortName
sbb al, al
and byte [ebp - 0x3c1], al
call fcn.004645d0
xorps xmm0, xmm0
mov dword [ebp - 0x3dc], fcn.004e1b5b
add esp, 4
mov dword [ebp - 0x3d8], fcn.004e1ae7
movups xmmword [ebp - 0x3ec], xmm0
mov dword [ebp - 0x3d4], fcn.004e1b56
mov dword [ebp - 0x3d0], 0
lea eax, [ebp - 0x3ec]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x170]
call fcn.0046a680
mov eax, dword [ebp - 0x3d0]
xor esi, esi
test eax, eax
jle 0x45a555
mov edi, dword [ebp - 0x3ec]
nop dword [eax]
test esi, esi
js 0x45a52e
cmp esi, eax
jge 0x45a52e
mov eax, edi
jmp 0x45a530
lea eax, [ebp - 0x3c0]
mov ecx, ebx
push eax
lea eax, [ebp - 0x298]
push eax
push edi
call edx
test al, al
jne 0x45a36f
xor bl, bl
jmp 0x45a864
xor eax, eax
mov ecx, dword [eax + 0x124]
cmp ecx, 7
ja 0x45a544
push ecx
push eax
mov ecx, ebx
call fcn.0045ac90
mov eax, dword [ebp - 0x3d0]
inc esi
add edi, 0x4d8
cmp esi, eax
jl 0x45a500
lea ecx, [ebp - 0x3ec]
mov byte [ebp - 4], 4
call fcn.0045c5c0
mov dword [ebp - 0x24], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 5
mov esi, fcn.004e1b56
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x45a590
mov eax, dword [ebp - 0x2c]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], vtable.n_config::t_typeBase.0
mov dword [ebp - 0x64], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x45a5d2
mov eax, dword [ebp - 0x6c]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x90], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc4], vtable.n_config::t_arraySection_class_t_configRuntimeFile::t_item_.0
call fcn.0045be90
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x45a62c
mov eax, dword [ebp - 0x9c]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xc4], vtable.n_config::t_typeBase.0
mov dword [ebp - 0xd8], vtable.n_config::t_typeBase.0
mov dword [ebp - 0xec], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x45a687
mov eax, dword [ebp - 0xf4]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x10c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - method.n_config::t_typeBase.virtual_0], vtable.n_config::t_typeBase.0
call fcn.00457490
cmp byte [ebp - 0x2a4], 0
lea eax, [ebp - 0x3b4]
cmove eax, dword [ebp - 0x3b8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a85e
shr eax, 4
not al
and al, 1
je 0x45a85e
push ecx
lea ecx, [ebp - 0xf8]
call fcn.0046ab80
mov byte [ebp - 4], 0xa
lea edi, [ebp - 0x3b4]
cmp byte [ebp - 0x2a4], 0
cmove edi, dword [ebp - 0x3b8]
xor esi, esi
cmp dword [ebp - 0xf0], esi
jle 0x45a747
nop word [eax + eax]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
cmp eax, vtable.n_config::t_arraySection_class_t_hookConfigFile::t_item_.0
jne 0x45a73c
call fcn.0045be90
jmp 0x45a73e
call edx
inc esi
cmp esi, dword [ebp - 0xf0]
jl 0x45a720
mov byte [ebp - 0x3c8], 0
mov dword [ebp - 0x3cc], 0
push 0x3a8
lea eax, [edi + 4]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x3cc]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00455f50
test al, al
jne 0x45a788
lea ecx, [ebp - 0x3cc]
call fcn.00450cd0
jmp 0x45a793
lea ecx, [ebp - 0xf8]
call fcn.0046bde0
lea ecx, [ebp - 0x3cc]
mov byte [ebp - 4], 0xa
call fcn.00450c20
lea eax, [ebx + 0x1d38]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0046af80
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], vtable.n_config::t_arraySection_class_t_configGameFile::t_item_.0
call fcn.0045be90
mov byte [ebp - 4], 0xd
mov esi, fcn.004e1b56
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x45a7ec
mov eax, dword [ebp - 0x20]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], vtable.n_config::t_typeBase.0
mov dword [ebp - 0x60], vtable.n_config::t_typeBase.0
mov dword [ebp - 0x74], vtable.n_config::t_typeBase.0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x94]
test ecx, ecx
je 0x45a835
mov eax, dword [ebp - 0x7c]
test eax, eax
push ecx
cmove eax, esi
call eax
add esp, 4
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xa0], vtable.n_config::t_typeBase.0
call fcn.00457490
mov bl, byte [ebp - 0x3c1]
cmp byte [ebp - 0x2a4], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45a890
mov eax, dword [ebp - 0x3b8]
lea ecx, [ebp - 0x3b4]
cmp eax, ecx
je 0x45a890
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x17c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45a8bc
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x28c]
cmp ecx, eax
je 0x45a8bc
push ecx
call fcn.004e1b56
add esp, 4
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.004d6cfd
mov esp, ebp
pop ebp
ret 8