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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1010f730
push eax
mov dword fs:[0], esp
sub esp, 0x1e0
push ebx
push esi
mov esi, ecx
mov ecx, 0x10153db8
push edi
cmp esi, 1
jne 0x100a5c34
mov edx, str.__Setting_up_critical_hit_table_using_CriticalOverrides.ini_file__old_fmt_
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100a597a
mov edx, str.__Setting_up_critical_hit_table_using_CriticalOverrides.ini_file__old_fmt_
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x10154a24], 0x10
mov eax, 0x10154a10
cmovae eax, dword [0x10154a10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100a59b0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret
xor esi, esi
xor edi, edi
mov dword [ebp + 0x60], edi
xor ebx, ebx
mov dword [ebp + 0x50], ebx
nop dword [eax]
push ebx
push edi
push esi
lea eax, [ebp]
push str.c__02d__d__d
push eax
call fcn.1000d880
add esp, 0x14
mov dword [ebp + 0x5c], 0
cmp esi, 0x13
mov eax, 0x26
cmove esi, eax
mov dword [ebp + 0x58], esi
lea eax, [edi + esi*8]
add eax, esi
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*2]
lea eax, [ecx*8]
sub eax, ecx
lea edi, [eax*4 + 0x101602b0]
mov eax, 0x10127fb0
sub eax, edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x34], eax
cmp dword [0x10154a24], 0x10
mov ecx, 0x10154a10
mov ebx, dword [edi]
cmovae ecx, dword [0x10154a10]
mov dword [ebp + 0x4c], 0xf
mov dword [ebp + 0x48], 0
mov byte [ebp + 0x38], 0
lea edx, [ebp + 0x38]
mov dword [ebp - 4], 0
push edx
push dword [eax + edi]
lea edx, [ebp]
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100a5aac
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x4c]
cmp eax, 0x10
jb 0x100a5aa5
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, 0x1000
jb 0x100a5a9c
test cl, 0x1f
jne 0x100a5c2f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100a5c2f
sub ecx, eax
cmp ecx, 4
jb 0x100a5c2f
cmp ecx, 0x23
ja 0x100a5c2f
mov ecx, eax
push ecx
call fcn.100e9b9e
add esp, 4
mov esi, ebx
jmp 0x100a5b6e
cmp dword [ebp + 0x4c], 0x10
lea edi, [ebp + 0x38]
mov ecx, dword [ebp + 0x38]
cmovae edi, ecx
mov al, byte [edi]
test al, al
jne 0x100a5ac3
mov esi, ebx
jmp 0x100a5b20
xor esi, esi
cmp al, 0x30
jne 0x100a5add
cmp byte [edi + 1], 0x62
jne 0x100a5add
cmp byte [edi + 2], 0
je 0x100a5add
add edi, 2
mov esi, 2
call fcn.100f0013
push esi
mov dword [eax], 0
lea eax, [ebp + 0x30]
push eax
push edi
call fcn.100f09f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100a5b01
cmp edi, dword [ebp + 0x30]
je 0x100a5b1b
call fcn.100f0013
cmp dword [eax], 0x22
jne 0x100a5b1d
cmp esi, 0x7fffffff
je 0x100a5b1b
cmp esi, 0x80000000
jne 0x100a5b1d
mov esi, ebx
mov ecx, dword [ebp + 0x38]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x4c]
cmp eax, 0x10
jb 0x100a5b6b
inc eax
cmp eax, 0x1000
jb 0x100a5b62
test byte [ebp + 0x38], 0x1f
jne 0x100a5c2f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x100a5c2f
sub ecx, eax
cmp ecx, 4
jb 0x100a5c2f
cmp ecx, 0x23
ja 0x100a5c2f
mov ecx, eax
push ecx
call fcn.100e9b9e
add esp, 4
mov edi, dword [ebp + 0x54]
cmp byte [0x10174f84], 0
mov dword [edi], esi
je 0x100a5bd5
cmp esi, ebx
je 0x100a5bd5
push esi
push ebx
push dword [ebp + 0x5c]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1ec]
push str.___Entry__s_value__d_changed_from__d_to__d_n
push eax
call fcn.1000d880
add esp, 0x18
cmp byte [0x10174f84], 0
je 0x100a5bd5
test byte [0x10174f88], 8
je 0x100a5bd5
lea edx, [ebp - 0x1ec]
mov ecx, 0x10153db8
call fcn.10012cf0
cmp dword [0x101553d8], 0
je 0x100a5bd5
lea edx, [ebp - 0x1ec]
mov ecx, 0x10141e60
call fcn.10012cf0
mov eax, dword [ebp + 0x5c]
add edi, 4
inc eax
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x5c], eax
cmp eax, 7
mov eax, dword [ebp + 0x34]
jl 0x100a5a11
mov ebx, dword [ebp + 0x50]
mov esi, dword [ebp + 0x58]
inc ebx
mov edi, dword [ebp + 0x60]
mov dword [ebp + 0x50], ebx
cmp ebx, 6
jb 0x100a59c0
inc edi
mov dword [ebp + 0x60], edi
cmp edi, 9
jb 0x100a59b7
inc esi
cmp esi, 0x14
jb 0x100a59b2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret
call fcn.100efe2d
mov edx, str.__Setting_up_critical_hit_table_using_RP_fixes
call fcn.10012cf0
cmp dword [0x101553d8], 0
je 0x100a5c56
mov edx, str.__Setting_up_critical_hit_table_using_RP_fixes
mov ecx, 0x10141e60
call fcn.10012cf0
cmp esi, 3
jne 0x100a5fce
mov edx, str._and_CriticalOverrides.ini_file
mov ecx, 0x10153db8
call fcn.10012cf0
cmp dword [0x101553d8], 0
je 0x100a5c86
mov edx, str._and_CriticalOverrides.ini_file
mov ecx, 0x10141e60
call fcn.10012cf0
cmp dword [0x10154a24], 0x10
mov eax, 0x10154a10
cmovae eax, dword [0x10154a10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100a5999
xor edi, edi
xor esi, esi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], esi
push edi
lea eax, [ebp - 0x4c]
push str.c__02d
push eax
call fcn.1000d880
add esp, 0xc
mov dword [ebp + 0x1c], 0xf
cmp dword [0x10154a24], 0x10
mov ecx, 0x10154a10
mov dword [ebp + 0x18], 0
cmovae ecx, dword [0x10154a10]
mov byte [ebp + 8], 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
push str.Enabled
lea edx, [ebp - 0x4c]
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100a5d2f
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100a5fb8
mov ecx, dword [ebp + 8]
inc edx
push 1
call fcn.1000d8e0
jmp 0x100a5fb8
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
xor edx, edx
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x24], eax
cmp edx, 0x10
jb 0x100a5d61
mov ecx, dword [ebp + 8]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100a5fb8
xor ebx, ebx
mov dword [ebp + 0x28], ebx
nop
cmp eax, 2
jge 0x100a5db0
push ebx
lea eax, [ebp - 0x2c]
push str.Part__d
push eax
call fcn.1000d880
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [0x10154a24], 0x10
lea ecx, [ebp - 0x4c]
mov eax, 0x10154a10
cmovae eax, dword [0x10154a10]
push eax
push 0
call fcn.10005480
test eax, eax
je 0x100a5fa8
push ebx
push edi
lea eax, [ebp - 0x2c]
push str.c__02d__d
push eax
call fcn.1000d880
lea eax, [esi + ebx]
xor edi, edi
imul esi, eax, 0xa8
add esp, 0x10
mov dword [ebp + 0x5c], edi
add esi, 0x101602b0
mov dword [ebp + 0x60], esi
nop word [eax + eax]
xor ebx, ebx
mov dword [ebp + 0x58], ebx
push dword [ebx*4 + 0x10127fb0]
lea eax, [ebp - 0x6c]
push edi
push str.e_d__s
push eax
call fcn.1000d880
add esp, 0x10
mov eax, 0x10154a10
cmp ebx, 1
jne 0x100a601b
cmp dword [0x10154a24], 0x10
lea edx, [ebp - 0x2c]
lea ecx, [ebp + 0x44]
cmovae eax, dword [0x10154a10]
push eax
push 0x2c
push 0x1011f824
lea eax, [ebp - 0x6c]
push eax
call fcn.1000dc80
mov edi, dword [ebp + 0x48]
mov eax, 0x2aaaaaab
mov esi, dword [ebp + 0x44]
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp + 0x2c], ecx
jne 0x100a5ea2
test esi, esi
je 0x100a5f79
push dword [ebp + 0x2c]
mov edx, edi
push ecx
mov ecx, esi
call fcn.1000e070
mov edx, dword [ebp + 0x4c]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 0x44]
sub edx, ecx
imul edx
push 0x18
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
jmp 0x100a5f79
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0x50], eax
test ecx, ecx
jle 0x100a5f28
xor esi, esi
mov dword [ebp + 0x54], esi
call fcn.100f0013
mov dword [eax], 0
add esi, dword [ebp + 0x44]
cmp dword [esi + 0x14], 0x10
jb 0x100a5ec8
mov esi, dword [esi]
push 0
lea eax, [ebp + 0x20]
push eax
push esi
call fcn.100f09f0
mov edi, eax
add esp, 0xc
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x100a6040
cmp byte [eax], 0
jne 0x100a6040
cmp edi, 0x80000000
je 0x100a5efd
cmp edi, 0x7fffffff
jne 0x100a5f0b
call fcn.100f0013
cmp dword [eax], 0x22
je 0x100a6040
mov eax, dword [ebp + 0x50]
inc ebx
mov esi, dword [ebp + 0x54]
or eax, edi
add esi, 0x18
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], esi
cmp ebx, dword [ebp + 0x2c]
jl 0x100a5eb2
mov edi, dword [ebp + 0x48]
mov esi, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x60]
mov dword [ecx + 4], eax
test esi, esi
je 0x100a5f76
push dword [ebp + 0x2c]
mov edx, edi
push ecx
mov ecx, esi
call fcn.1000e070
mov edx, dword [ebp + 0x4c]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 0x44]
sub edx, ecx
imul edx
push 0x18
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
mov ebx, dword [ebp + 0x58]
mov edi, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x60]
inc ebx
mov dword [ebp + 0x58], ebx
cmp ebx, 7
jl 0x100a5de5
inc edi
add esi, 0x1c
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], esi
cmp edi, 6
jl 0x100a5de0
mov ebx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x30]
mov edi, dword [ebp + 0x34]
mov eax, dword [ebp + 0x24]
inc ebx
mov dword [ebp + 0x28], ebx
cmp ebx, 9
jl 0x100a5d70
add esi, 9
inc edi
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], esi
cmp esi, 0x15f
jl 0x100a5cb3
mov edx, 0x10122058
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x100a6007
mov edx, 0x10122058
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret
cmp dword [0x10154a24], 0x10
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
cmovae eax, dword [0x10154a10]
push eax
push dword [esi + ebx*4]
call fcn.10005480
mov dword [esi + ebx*4], eax
jmp 0x100a5f7f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xec]
push str.Incorrect_value_of_the_EffectFlags_parameter_in_the_section___s__of_the_table.
push eax
call fcn.1000d880
add esp, 0xc
lea eax, [ebp - 0xec]
push 0x2010
push str.SFALL:_Critical_table_file
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp + 0x44]
test ecx, ecx
je 0x100a60a6
push dword [ebp + 0x2c]
mov edx, dword [ebp + 0x48]
push ecx
call fcn.1000e070
mov edx, dword [ebp + 0x4c]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp + 0x44]
sub edx, ecx
imul edx
push 0x18
mov eax, edx
sar eax, 2
mov edx, eax
shr edx, 0x1f
add edx, eax
call fcn.1000d8e0
mov ecx, dword [ebp - 0xc]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x64]
pop ebp
ret