Function at 0x1040c9b
Capabilities:
Check if file exists

Disassembly:
push 0x54
mov eax, 0x10b4f81
call fcn.010aac2c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x10076f8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], edi
call fcn.010ab83f
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
cmp eax, edi
jne 0x1040cf2
mov eax, 0x80004003
mov dword [ebp - 0x14], eax
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 0x14
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x1040d09
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
jmp 0x1040deb
call fcn.010a910a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
cmp dword [ebp + 8], edi
je 0x1040e8d
push dword [ebp + 8]
mov ecx, eax
call fcn.0108b5f8
xor esi, esi
inc esi
push 9
pop edi
cmp eax, esi
jne 0x1040d37
or dword [ebp + 0x10], edi
push dword [ebp + 8]
call fcn.01075c51
test eax, eax
je 0x1040d4a
or dword [ebp + 0x10], 0x40009
push dword [ebp + 8]
call dword [fcn.01001bd8]
test eax, eax
je 0x1040d76
xor ecx, ecx
cmp cx, word [eax]
je 0x1040d76
push 0xffffffffffffffff
push 0x10021c8
push 0xffffffffffffffff
push eax
push esi
push 0x7f
call dword [fcn.01001288]
cmp eax, 2
je 0x1040d79
or dword [ebp + 0x10], edi
test dword [ebp + 0x10], 0x800
je 0x1040d88
or dword [ebp + 0x10], edi
push 0x40
pop ebx
call fcn.010a910a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 0x10]
or ecx, esi
push ecx
push dword [ebp + 8]
mov ecx, eax
call fcn.0108cd32
mov dword [ebp - 0x14], eax
cmp eax, esi
jne 0x1040de9
push dword [ebp + 8]
call dword [fcn.01001bf8]
cmp eax, esi
jne 0x1040de9
or dword [ebp + 0x10], edi
call fcn.010a910a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.0108cd32
mov dword [ebp - 0x14], eax
xor edi, edi
cmp dword [ebp - 0x14], edi
jl 0x1040fb4
cmp dword [ebp - 0x10], edi
je 0x1040f75
call fcn.010a910a
mov esi, dword [eax + 0xc]
call fcn.010a910a
push dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
push esi
push dword [ebp + 0x10]
mov ecx, eax
push ebx
push dword [ebp - 0x10]
call fcn.0108abdc
cmp eax, edi
mov dword [ebp - 0x14], eax
jge 0x1040f28
test bl, 0x40
jne 0x1040f28
cmp eax, 0xc6c81098
jne 0x1040ea3
mov dword [ebp + 0xc], edi
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.01040781
cmp eax, edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
jl 0x1040e76
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 0
cmp esi, edi
je 0x1040f28
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x1040f28
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
call fcn.0108c34c
mov dword [ebp - 0x14], eax
jmp 0x1040deb
cmp eax, 0xc6c8111f
jne 0x1040f28
call fcn.010a910a
mov esi, dword [eax + 0xc]
call fcn.010a910a
push dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
push esi
push edi
or ebx, 0x40
push ebx
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0108abdc
cmp eax, edi
mov dword [ebp - 0x14], eax
jl 0x1040f28
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edx, [ebp - 0x34]
push edx
stosd dword es:[edi], eax
lea edx, [ebp + 0x18]
push edx
push 0
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
push 1
mov dword [ebp + 0x18], 0x1a0003
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x1040f1c
mov eax, dword [ebp - 0x10]
or dword [ebp - 0x2c], 1
mov ecx, dword [eax]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp + 0x18]
push edx
push 0
push 1
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x34]
push eax
call dword [fcn.010020a0]
xor edi, edi
cmp dword [ebp - 0x14], 0x40301
jne 0x1040f75
push edi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x60]
call fcn.0103c861
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x60]
push eax
push 0x41
push 0x2001
call fcn.0103daf0
cmp eax, 2
jne 0x1040f75
call fcn.010a910a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xe00]
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0108adf1
mov dword [ebp - 0x14], 0x80004004
cmp dword [ebp - 0x14], edi
jl 0x1040fb4
cmp dword [ebp - 0x10], edi
je 0x1040f9d
call fcn.010a910a
mov eax, dword [eax + 4]
push dword [ebp + 0x10]
mov eax, dword [eax + 0xe00]
push dword [ebp - 0x10]
mov ecx, eax
call fcn.0108bcd6
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], edi
jl 0x1040fb4
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1040fc4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x1040fc4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x1040fd4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], edi
mov esi, dword [ebp - 0x14]
jmp 0x1040cdc