Function at 0x108dadd
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x218]
push 0x206
mov dword [ebp - 0x21c], esi
stosd dword es:[edi], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x57
pop edi
cmp ebx, esi
jne 0x108db6c
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dd9d
test byte [eax + 0x1c], 1
je 0x108dd9d
push 0x10127f8
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
jmp 0x108dd9d
cmp dword [ebp + 0x18], esi
jne 0x108db94
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dd9d
test byte [eax + 0x1c], 1
je 0x108dd9d
push 0x10127f8
push 0x42
jmp 0x108db5c
test byte [ebp + 0x10], 0x10
lea eax, [ebp - 0x20c]
je 0x108dc52
push esi
push esi
push eax
push 0x1012be0
call fcn.0108d7b5
cmp eax, esi
jge 0x108dbe4
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108dbdc
test byte [ecx + 0x1c], 1
je 0x108dbdc
push eax
push 0x10127f8
push 0x43
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
push 3
pop edi
jmp 0x108dd9d
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
jne 0x108dc1a
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dd9d
test byte [eax + 0x1c], 1
je 0x108dd9d
push 0x10127f8
push 0x44
jmp 0x108db5c
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x108dc9b
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x108dd9d
test byte [eax + 0x1c], 1
je 0x108dd9d
push 0x10127f8
push 0x45
jmp 0x108db5c
push dword [ebp - 0x210]
push 0x104
push eax
call fcn.0101d307
cmp eax, esi
jge 0x108dc9b
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108dd9d
test byte [ecx + 0x1c], 1
je 0x108dd9d
push eax
push 0x10127f8
push 0x46
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010160ad
jmp 0x108dd9d
cmp dword [ebp + 0xc], esi
jbe 0x108dd37
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push ebx
call fcn.0103e1ed
add esp, 0x10
test eax, eax
jl 0x108dd7a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x108dd9b
test byte [ebp + 0x10], 1
jne 0x108dd9b
test byte [ebp + 0x10], 2
je 0x108dd2d
lea eax, [ebp - 0x240]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x108dd2d
test esi, esi
je 0x108dd0f
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x108dd2d
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x108dca4
test byte [ebp + 0x10], 2
je 0x108dd9d
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0x18]
push ebx
call fcn.0103e1ed
add esp, 0x10
test eax, eax
jge 0x108dd9b
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108dd9d
test byte [ecx + 0x1c], 1
je 0x108dd9d
push eax
push 0x10127f8
push 0x48
jmp 0x108dc8b
mov ecx, dword [0x10a60d8]
cmp ecx, 0x10a60d8
je 0x108dd9d
test byte [ecx + 0x1c], 1
je 0x108dd9d
push eax
push 0x10127f8
push 0x47
jmp 0x108dc8b
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 0x14