Function at 0x10092b50
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 0x1010f3fb
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.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x10092bb4
mov edx, str.Loading_extra_patches:
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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.100f6399
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 0x10092ca8
lea ecx, [ebp + 0x58]
call fcn.10013bc0
test al, al
je 0x10092ca8
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 0x10092ca8
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.100efbe3
cmovae edx, esi
cmovae ebx, esi
cmovae ecx, esi
lea edx, [edx + eax]
lea eax, [ebp + 0x54]
push eax
push ebx
call fcn.10014ad0
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push eax
mov ecx, esi
call fcn.100147a0
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
push 0
push str.____s_n
call fcn.10012400
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x10092cf5
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x10092cf5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x6c]
cmp eax, 0x10
jb 0x10092cf5
mov ecx, dword [ebp + 0x58]
inc eax
cmp eax, 0x1000
jb 0x10092cec
test cl, 0x1f
jne 0x10092fca
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10092fca
sub ecx, eax
cmp ecx, 4
jb 0x10092fca
cmp ecx, 0x23
ja 0x10092fca
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 0x10092bd4
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 0x10092d3e
mov ecx, esi
call fcn.100927f0
test al, al
jne 0x100933c5
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 0x100930ca
mov edx, str._n_Add_mods_from_mods_order.ini_file:
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x10092d98
mov edx, str._n_Add_mods_from_mods_order.ini_file:
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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 0x100930b3
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 0x10092e0c
cmp dword [ebp + 0x4c], eax
jb 0x100932e7
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 0x10092e5a
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 0x10092e5a
movsx eax, byte [esi]
push 1
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.100ec190
add esp, 0xc
test eax, eax
je 0x10092fcf
inc esi
cmp esi, edi
jb 0x10092e35
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 0x10093092
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 0x10092ec8
nop dword [eax]
movsx eax, byte [ebx + esi]
push eax
call fcn.100efbe3
mov ecx, dword [ebp + 0x54]
add esp, 4
mov byte [ecx + esi], al
inc esi
cmp esi, edi
jne 0x10092eb0
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 0x100931ff
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.10013ac0
mov byte [ebp - 4], 6
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x10092f1e
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 0x100932e7
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 0x10093010
mov esi, 0x10125220
sub edx, 4
jb 0x10092f91
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10092f96
add ecx, 4
add esi, 4
sub edx, 4
jae 0x10092f80
cmp edx, 0xfffffffc
je 0x10093001
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x10092fc3
cmp edx, 0xfffffffd
je 0x10093001
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x10092fc3
cmp edx, 0xfffffffe
je 0x10093001
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x10092fc3
cmp edx, 0xffffffff
je 0x10093001
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x10093001
sbb eax, eax
or eax, 1
jmp 0x10093003
call fcn.100efe1d
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 0x10092e5a
test esi, esi
je 0x10092e73
push esi
push 0
lea ecx, [ebp + 0x3c]
call fcn.1000d790
jmp 0x10092e6d
xor eax, eax
test eax, eax
jne 0x100931e9
mov eax, 1
cmp edi, 1
jae 0x1009301a
or eax, 0xffffffff
jmp 0x10093020
cmp eax, edi
sbb eax, eax
neg eax
test eax, eax
jne 0x100931e9
lea eax, [ebp + 0x3c]
mov edx, str.mods_
push eax
lea ecx, [ebp - 0x3c]
call fcn.100867d0
push eax
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 7
call fcn.10086750
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x1009305d
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 0x1009306b
mov eax, dword [eax]
push eax
push 0
push str.____s_:_Disabled._n
call fcn.10012400
mov byte [ebp - 4], 3
add esp, 0xc
mov edx, dword [ebp - 0x10]
cmp edx, 0x10
jb 0x10093092
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 0x10092dd0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x50]
cmp edx, 0x10
jb 0x100930ca
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 0x100933ba
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 0x1009337c
mov edx, str._n_Autoload_mods_from_Mods_folder:
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x10093163
mov edx, str._n_Autoload_mods_from_Mods_folder:
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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 0x10093195
nop
mov dl, byte [ecx]
mov al, dl
sub al, 0x41
cmp al, 0x19
ja 0x1009318f
add dl, 0x20
mov byte [ecx], dl
inc ecx
cmp byte [ecx], 0
jne 0x10093180
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp + 0x10]
lea ecx, [ebp + 0x58]
call fcn.10093d20
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0x74]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp + 0x58]
call fcn.1007c440
mov ecx, dword [ebp + 0x68]
sub ecx, eax
cmp ecx, 4
jbe 0x100932f1
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x10093360
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x10093360
mov byte [ebp - 4], 3
cmp ebx, 0x10
jb 0x100931ff
mov ecx, dword [ebp - 0x24]
lea edx, [ebx + 1]
push 1
call fcn.1000d8e0
lea ecx, [ebp + 0x3c]
call fcn.10013bc0
test al, al
je 0x10093092
lea eax, [ebp + 0x3c]
mov edx, str..mods_
push eax
lea ecx, [ebp + 0x58]
call fcn.100867d0
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.10092780
test al, al
jne 0x10093275
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 0x10093295
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.10012400
add esp, 0xc
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x10093095
mov ecx, dword [ebp + 0x58]
inc edx
push 1
call fcn.1000d8e0
jmp 0x10093095
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.10086750
mov byte [ebp - 4], 8
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x100932cf
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 0x1009326d
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.10092780
test al, al
jne 0x10093346
mov edx, dword [ebp + 0x70]
mov ecx, esi
call fcn.10092780
test al, al
jne 0x10093346
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push eax
mov ecx, esi
call fcn.100147a0
cmp dword [ebp + 0x6c], 0x10
lea eax, [ebp + 0x58]
cmovae eax, dword [ebp + 0x58]
push eax
push 0
push str.____s_n
call fcn.10012400
add esp, 0xc
jmp 0x100931c9
mov byte [ebp - 4], 0xa
mov edx, dword [ebp + 0x6c]
cmp edx, 0x10
jb 0x1009335d
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 0x10093170
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 0x100933a7
lea eax, [ebx + ebx*2]
lea eax, [esi + eax*8]
push ecx
push eax
call fcn.10093e20
mov edx, dword [ebp + 0x24]
cmp edx, 0x10
jb 0x100933ba
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 0x1009344e
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 0x10093440
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 0x10093429
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x10093426
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 0x10093404
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 0x100933f6
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