Function at 0x108cd32
Capabilities:
Check if file exists

Disassembly:
push 0x220
mov eax, 0x10b8081
call fcn.010aac9f
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], ecx
xor esi, esi
push 0x1021e9c
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x21c], esi
call fcn.010ab83f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.010aad66
add esp, 0xc
cmp dword [ebp - 0x220], esi
jne 0x108cdc2
mov esi, 0x80004003
mov dword [ebp - 0x21c], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0x10
cmp edi, esi
jne 0x108cdcc
cmp ebx, esi
jne 0x108cdd2
jmp 0x108cd9e
mov dword [edi], esi
cmp ebx, esi
je 0x108cdd4
mov dword [ebx], esi
push esi
lea eax, [ebp - 0x218]
push eax
mov esi, 0x104
push esi
push dword [ebp - 0x220]
call dword [0x10011bc]
test eax, eax
jne 0x108ce38
call dword [fcn.0100128c]
test eax, eax
jle 0x108ce06
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ced4
test byte [eax + 0x1c], 4
je 0x108ced4
push dword [ebp - 0x21c]
push 0x10218f8
push 0xd
jmp 0x108cebb
push esi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [fcn.010011b0]
test eax, eax
jne 0x108cec8
call dword [fcn.0100128c]
test eax, eax
jle 0x108ce5f
and eax, 0xffff
or eax, 0x80070000
mov ecx, 0x80070005
mov dword [ebp - 0x21c], eax
cmp eax, ecx
jne 0x108ce9c
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ce93
test byte [eax + 0x1c], 8
je 0x108ce93
push ecx
push 0x10218f8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
and dword [ebp - 0x21c], 0
jmp 0x108cee1
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ced4
test byte [eax + 0x1c], 4
je 0x108ced4
push dword [ebp - 0x21c]
push 0x10218f8
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
jmp 0x108ced4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x21c], 0
jl 0x108d0f8
test dword [ebp + 0xc], 8
jne 0x108cf24
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c5f6
mov dword [ebp - 0x21c], eax
cmp eax, 1
jne 0x108cf2e
push dword [ebp - 0x220]
call dword [fcn.01001bdc]
test eax, eax
jne 0x108cf2e
or dword [ebp + 0xc], 0x80000
jmp 0x108cf2e
mov dword [ebp - 0x21c], 1
xor esi, esi
cmp dword [ebp - 0x21c], esi
jl 0x108d0f8
cmp dword [ebp - 0x21c], 1
je 0x108cf55
cmp edi, esi
je 0x108cf4d
cmp dword [edi], esi
je 0x108cf55
cmp ebx, esi
je 0x108cf71
cmp dword [ebx], esi
jne 0x108cf71
mov ecx, dword [ebp - 0x224]
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x220]
call fcn.0108c6c8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], esi
jl 0x108d0f8
cmp ebx, esi
je 0x108cfeb
mov eax, dword [ebx]
cmp eax, esi
je 0x108cfeb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108cfa9
push esi
call dword [fcn.01001278]
test eax, eax
je 0x108cfa9
push esi
call dword [fcn.01001bf8]
test eax, eax
jne 0x108cfeb
mov eax, dword [ebx]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx], 0
call dword [fcn.0100128c]
push eax
call fcn.01074d32
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108cfeb
test byte [eax + 0x1c], 4
je 0x108cfeb
push esi
push 0x10218f8
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103140f
cmp dword [ebp - 0x21c], 0
jl 0x108d0f8
test edi, edi
je 0x108d066
mov eax, dword [edi]
test eax, eax
je 0x108d066
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
test esi, esi
je 0x108d024
push esi
call dword [fcn.01001278]
test eax, eax
je 0x108d024
push esi
call dword [fcn.01001bf8]
test eax, eax
jne 0x108d066
mov eax, dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [edi], 0
call dword [fcn.0100128c]
push eax
call fcn.01074d32
mov dword [ebp - 0x21c], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108d066
test byte [eax + 0x1c], 4
je 0x108d066
push esi
push 0x10218f8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103140f
cmp dword [ebp - 0x21c], 0
jl 0x108d0f8
test dword [ebp + 0xc], 1
jne 0x108d0ce
test edi, edi
je 0x108d0a5
mov eax, dword [edi]
test eax, eax
je 0x108d0a5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [ebp - 0x224]
mov ecx, dword [esi + 0x6c]
push eax
call fcn.0108e408
mov ecx, dword [esi + 0x6c]
call fcn.0108e69c
jmp 0x108d0ab
mov esi, dword [ebp - 0x224]
test ebx, ebx
je 0x108d0d4
mov eax, dword [ebx]
test eax, eax
je 0x108d0d4
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [esi + 0x68]
push eax
call fcn.0108e408
mov ecx, dword [esi + 0x68]
call fcn.0108e69c
jmp 0x108d0d4
mov esi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], 0
jl 0x108d0f8
test dword [ebp + 0xc], 0x80000
je 0x108d0f8
push 0x100000
mov ecx, esi
call fcn.0108cbee
mov dword [ebp - 0x21c], eax
mov esi, dword [ebp - 0x21c]
jmp 0x108cda9