Function at 0x100397eb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a445e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [edi + 0x24], bl
je 0x10039907
lea eax, [esp + 0x14]
push eax
call fcn.10028b91
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
call fcn.10084ad6
add eax, 0x10
lea ecx, [esp + 0x30]
mov dword [esi], eax
call fcn.10039543
mov byte [esp + 0x50], 1
xor esi, esi
cmp dword [esp + 0x30], ebx
jle 0x100398f2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084ad6
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x50], 2
cmp esi, ebx
jl 0x100399b3
cmp esi, dword [esp + 0x30]
jge 0x100399b3
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*4]
push dword [eax]
lea eax, [esp + 0x10]
call fcn.1005fec1
push 0x10009268
lea eax, [esp + 0x10]
call fcn.1005fec1
push dword [esp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100399b8
cmp esi, dword [esp + 0x30]
jge 0x100399b3
lea eax, [esp + 0xc]
push eax
push edi
call fcn.100396a2
test al, al
je 0x10039919
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.10084b37
inc esi
cmp esi, dword [esp + 0x30]
jl 0x10039861
lea esi, [esp + 0x2c]
call fcn.10072bbb
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 3
cmp esi, dword [esp + 0x30]
jge 0x100399b3
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*4]
push dword [eax]
lea eax, [esp + 0x14]
push 0x10009290
push eax
call fcn.100847a7
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
add esp, 0xc
push dword [esp + 0x10]
push ebx
call dword [eax + 4]
push 0x1000593c
lea eax, [esp + 0x1c]
push eax
call fcn.1005f361
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
mov byte [esp + 0x58], 4
call fcn.1002b306
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.1002d2f2
push 0x100aac28
lea eax, [esp + 0x3c]
push eax
call fcn.1008e3d9
call fcn.10083247
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x50], 7
cmp esi, dword [esp + 0x30]
jge 0x100399b3
mov eax, dword [esp + 0x2c]
lea eax, [eax + esi*4]
push dword [eax]
lea eax, [esp + 0x14]
push 0x10009328
push eax
call fcn.100847a7
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
add esp, 0xc
push dword [esp + 0x10]
push ebx
call dword [eax + 4]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1002b2a7
mov esi, 0x1001afc0
mov dword [esp + 0x18], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x54], 8
call fcn.1002d336
mov dword [esp + 0x20], esi
push 0x100aad5c
lea eax, [esp + 0x24]
jmp 0x100399ad