Function at 0x10092b70
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x1010f40b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
mov edx, str.Loading_extra_patches:
push edi
mov ecx, 0x10153db8
mov dword [ebp + 0x70], esi
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x10092bd4
mov edx, str.Loading_extra_patches:
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov ax, word [0x101227a0]
movq xmm0, qword [str.PatchFile]
mov word [ebp + 8], ax
xor eax, eax
movq qword [ebp], xmm0
mov word [ebp + 0xa], ax
mov dword [ebp + 0x38], eax
push 0xa
lea ecx, [ebp + 9]
push ecx
push eax
call fcn.100f63a9
add esp, 0xc
lea eax, [ebp]
mov edx, str.ExtraPatches
lea ecx, [ebp + 0x58]
push 0x1011f824
push eax
call fcn.1000dd00
mov dword [ebp - 4], 0
cmp dword [ebp + 0x68], 0
je 0x10092cc8
lea ecx, [ebp + 0x58]
call fcn.10013bd0
test al, al
je 0x10092cc8
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10092cc8
mov edi, dword [ebp + 0x6c]
lea edx, [ebp + 0x58]
mov esi, dword [ebp + 0x58]
lea ebx, [ebp + 0x58]
mov eax, dword [ebp + 0x68]
lea ecx, [ebp + 0x58]
cmp edi, 0x10
mov dword [ebp + 0x54], fcn.100efbf3
cmovae edx, esi
cmovae ebx, esi
cmovae ecx, esi
lea edx, [edx + eax]
lea eax, [ebp + 0x54]
push eax
push ebx
call fcn.10014ae0
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push eax
mov ecx, esi
call fcn.100147b0
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
push 0
push str.____s_n
call fcn.10012410
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x10092d15
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x10092d15
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x6c]
cmp eax, 0x10
jb 0x10092d15
mov ecx, dword [ebp + 0x58]
inc eax
cmp eax, 0x1000
jb 0x10092d0c
test cl, 0x1f
jne 0x10092fea
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10092fea
sub ecx, eax
cmp ecx, 4
jb 0x10092fea
cmp ecx, 0x23
ja 0x10092fea
mov ecx, eax
push ecx
call fcn.100e9b9e
add esp, 4
mov eax, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x38], eax
cmp eax, 0x64
jl 0x10092bf4
sub esp, 0xc
lea ecx, [ebp - 0xf4]
push str..modsmods_order.ini
call fcn.10006330
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x10092d5e
mov ecx, esi
call fcn.10092810
test al, al
jne 0x100933e5
mov eax, dword [ebp - 0x98]
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
mov byte [ebp - 4], 2
test eax, eax
je 0x100930ea
mov edx, str._n_Add_mods_from_mods_order.ini_file:
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x10092db8
mov edx, str._n_Add_mods_from_mods_order.ini_file:
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov dword [ebp + 0x50], 0xf
mov dword [ebp + 0x4c], 0
mov byte [ebp + 0x3c], 0
lea edx, [ebp + 0x3c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xf4]
call fcn.10009280
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x100930d3
nop dword [eax]
xor ecx, ecx
mov eax, 2
cmp byte [0x1011f7c0], cl
cmove eax, ecx
lea ecx, [ebp + 0x3c]
push eax
sub esp, 8
call fcn.100078a0
cmp eax, 0xffffffff
je 0x10092e2c
cmp dword [ebp + 0x4c], eax
jb 0x10093307
cmp dword [ebp + 0x50], 0x10
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x4c], eax
cmovae ecx, dword [ebp + 0x3c]
mov byte [ecx + eax], 0
mov esi, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x3c]
mov byte [ebp + 0x74], 0x20
test esi, esi
je 0x10092e7a
cmp ecx, 0x10
lea edi, [ebp + 0x3c]
cmovae edi, edx
add edi, esi
cmp ecx, 0x10
lea esi, [ebp + 0x3c]
cmovae esi, edx
cmp esi, edi
jae 0x10092e7a
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.100ec180
add esp, 0xc
test eax, eax
je 0x10092fef
inc esi
cmp esi, edi
jb 0x10092e55
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x3c]
cmp ecx, 0x10
mov dword [ebp + 0x4c], 0
lea eax, [ebp + 0x3c]
cmovae eax, edx
mov byte [eax], 0
mov edx, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x50]
mov esi, dword [ebp + 0x4c]
test esi, esi
je 0x100930b2
cmp ecx, 0x10
lea eax, [ebp + 0x3c]
lea ebx, [ebp + 0x3c]
cmovae eax, edx
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x3c]
cmovae eax, edx
add eax, esi
cmp ecx, 0x10
mov edi, eax
cmovae ebx, edx
xor ecx, ecx
sub edi, ebx
xor esi, esi
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x10092ee8
nop dword [eax]
movsx eax, byte [ebx + esi]
push eax
call fcn.100efbf3
mov ecx, dword [ebp + 0x54]
add esp, 4
mov byte [ecx + esi], al
inc esi
cmp esi, edi
jne 0x10092ed0
push 1
push 0
lea eax, [ebp + 0x74]
mov byte [ebp + 0x74], 0x3d
push eax
lea ecx, [ebp + 0x3c]
call fcn.10007920
mov esi, eax
cmp esi, 0xffffffff
je 0x1009321f
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x3c]
call fcn.100061e0
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.10013ad0
mov byte [ebp - 4], 6
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x10092f3e
mov ecx, dword [ebp + 0x10]
inc edx
push 1
call fcn.1000d8e0
mov dword [ebp + 0x24], 0xf
mov dword [ebp + 0x20], 0
mov byte [ebp + 0x10], 0
cmp dword [ebp + 0x4c], esi
jb 0x10093307
cmp dword [ebp + 0x50], 0x10
lea eax, [ebp + 0x3c]
mov dword [ebp + 0x4c], esi
lea ecx, [ebp - 0x24]
cmovae eax, dword [ebp + 0x3c]
mov byte [eax + esi], 0
mov eax, 1
mov ebx, dword [ebp - 0x10]
mov edx, eax
mov edi, dword [ebp - 0x14]
cmp ebx, 0x10
cmovae ecx, dword [ebp - 0x24]
cmp edi, eax
cmovb edx, edi
test edx, edx
je 0x10093030
mov esi, 0x10125220
sub edx, 4
jb 0x10092fb1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10092fb6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10092fa0
cmp edx, 0xfffffffc
je 0x10093021
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10092fe3
cmp edx, 0xfffffffd
je 0x10093021
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10092fe3
cmp edx, 0xfffffffe
je 0x10093021
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10092fe3
cmp edx, 0xffffffff
je 0x10093021
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10093021
sbb eax, eax
or eax, 1
jmp 0x10093023
call fcn.100efe2d
mov ecx, dword [ebp + 0x50]
lea eax, [ebp + 0x3c]
mov edx, dword [ebp + 0x3c]
cmp ecx, 0x10
cmovae eax, edx
sub esi, eax
cmp esi, 0xffffffff
je 0x10092e7a
test esi, esi
je 0x10092e93
push esi
push 0
lea ecx, [ebp + 0x3c]
call fcn.1000d790
jmp 0x10092e8d
xor eax, eax
test eax, eax
jne 0x10093209
mov eax, 1
cmp edi, 1
jae 0x1009303a
or eax, 0xffffffff
jmp 0x10093040
cmp eax, edi
sbb eax, eax
neg eax
test eax, eax
jne 0x10093209
lea eax, [ebp + 0x3c]
mov edx, str.mods_
push eax
lea ecx, [ebp - 0x3c]
call fcn.100867f0
push eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 7
call fcn.10086770
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x1009307d
mov ecx, dword [ebp - 0x3c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [ebp + 0x2c]
add eax, 0xffffffe8
cmp dword [eax + 0x14], 0x10
jb 0x1009308b
mov eax, dword [eax]
push eax
push 0
push str.____s_:_Disabled._n
call fcn.10012410
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x100930b2
mov ecx, dword [ebp - 0x24]
inc edx
push 1
call fcn.1000d8e0
mov esi, dword [ebp + 0x70]
lea edx, [ebp + 0x3c]
lea ecx, [ebp - 0xf4]
call fcn.10009280
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10092df0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x50]
cmp edx, 0x10
jb 0x100930ea
mov ecx, dword [ebp + 0x3c]
inc edx
push 1
call fcn.1000d8e0
push 1
mov edx, str.AutoloadingMods
mov ecx, str.ExtraPatches
call fcn.1000dcb0
test eax, eax
je 0x100933da
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
push str.mods_
sar edx, 2
lea ecx, [ebp + 0x10]
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov dword [ebp + 0x54], ebx
call fcn.1000cbb0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xa
push eax
push str..mods.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1009339c
mov edx, str._n_Autoload_mods_from_Mods_folder:
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x10093183
mov edx, str._n_Autoload_mods_from_Mods_folder:
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov byte [ebp + 0x74], 0x2e
nop dword [eax]
cmp byte [ebp - 0x208], 0
lea ecx, [ebp - 0x208]
je 0x100931b5
nop
mov dl, byte [ecx]
mov al, dl
sub al, 0x41
cmp al, 0x19
ja 0x100931af
add dl, 0x20
mov byte [ecx], dl
inc ecx
cmp byte [ecx], 0
jne 0x100931a0
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp + 0x10]
lea ecx, [ebp + 0x58]
call fcn.10093d40
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0x74]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp + 0x58]
call fcn.1007c460
mov ecx, dword [ebp + 0x68]
sub ecx, eax
cmp ecx, 4
jbe 0x10093311
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x10093380
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x10093380
mov byte [ebp - 4], 3
cmp ebx, 0x10
jb 0x1009321f
mov ecx, dword [ebp - 0x24]
lea edx, [ebx + 1]
push 1
call fcn.1000d8e0
lea ecx, [ebp + 0x3c]
call fcn.10013bd0
test al, al
je 0x100930b2
lea eax, [ebp + 0x3c]
mov edx, str..mods_
push eax
lea ecx, [ebp + 0x58]
call fcn.100867f0
mov esi, dword [ebp + 0x70]
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], 8
mov edx, esi
cmp dword [ebp + 0x6c], 0x10
cmovae ecx, dword [ebp + 0x58]
add ecx, 2
call fcn.100927a0
test al, al
jne 0x10093295
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea eax, [ebp + 0x58]
jne 0x100932b5
cmp dword [ebp + 0x6c], 0x10
cmovae eax, dword [ebp + 0x58]
add eax, 2
push eax
push 0
push str.____s_:_Not_exists._n
call fcn.10012410
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x100930b5
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x100930b5
cmp dword [ebp + 0x6c], 0x10
lea ecx, [ebp + 0x10]
cmovae eax, dword [ebp + 0x58]
add eax, 2
push eax
call fcn.1000cbb0
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.10086770
mov byte [ebp - 4], 8
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x100932ef
mov ecx, dword [ebp + 0x10]
inc edx
push 1
call fcn.1000d8e0
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
add eax, 2
push eax
push 0
push str.____s_:_Done._n
jmp 0x1009328d
push str.invalid_string_position
call fcn.100e8a05
cmp dword [ebp + 0x6c], 0x10
lea esi, [ebp + 0x58]
lea edx, [ebp + 0x28]
cmovae esi, dword [ebp + 0x58]
mov ecx, esi
call fcn.100927a0
test al, al
jne 0x10093366
mov edx, dword [ebp + 0x70]
mov ecx, esi
call fcn.100927a0
test al, al
jne 0x10093366
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push eax
mov ecx, esi
call fcn.100147b0
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
push 0
push str.____s_n
call fcn.10012410
add esp, 0xc
jmp 0x100931e9
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x1009337d
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
mov esi, dword [ebp + 0x70]
lea eax, [ebp - 0x234]
push eax
push edi
call ebx
test eax, eax
jne 0x10093190
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp + 0x54]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
mov esi, dword [esi]
mov edx, ecx
sub edx, esi
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
je 0x100933c7
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*8]
push ecx
push eax
call fcn.10093e40
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x100933da
mov ecx, dword [ebp + 0x10]
inc edx
push 1
call fcn.1000d8e0
lea ecx, [ebp + 0x28]
call fcn.1000e020
mov esi, dword [ebp + 0x70]
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov eax, 0
sar edx, 2
mov ecx, edx
mov dword [ebp + 0x54], eax
shr ecx, 0x1f
add ecx, edx
mov dword [ebp + 0x34], ecx
je 0x1009346e
mov ebx, dword [ebp + 0x34]
lea edx, [ecx - 1]
xor ecx, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x38], ecx
cmp edx, eax
jbe 0x10093460
lea edi, [edx + edx*2]
mov ebx, edx
shl edi, 3
sub ebx, eax
mov eax, dword [esi]
lea esi, [eax + ecx]
lea edx, [eax + edi]
mov ecx, esi
call fcn.1000b5e0
test al, al
je 0x10093449
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10093446
mov esi, dword [esi]
mov byte [esi], 0
mov ecx, dword [ebp + 0x38]
sub edi, 0x18
mov esi, dword [ebp + 0x70]
sub ebx, 1
jne 0x10093424
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x34]
inc eax
add ecx, 0x18
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x38], ecx
cmp eax, ebx
jb 0x10093416
lea ecx, [ebp - 0xf4]
call fcn.10005390
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x78]
pop ebp
ret