Function at 0x1087523
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10b3818]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x210], eax
xor eax, eax
lea edi, [ebp - 0x218]
push 0x206
mov dword [ebp - 0x21c], esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
mov word [ebp - 0x20c], si
call fcn.0107aa60
add esp, 0xc
cmp ebx, esi
push 0x57
pop edi
jne 0x10875b2
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10877e5
test byte [eax + 0x1c], 1
je 0x10877e5
push 0x1007eac
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c05
jmp 0x10877e5
cmp dword [ebp + 0x18], esi
jne 0x10875da
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10877e5
test byte [eax + 0x1c], 1
je 0x10877e5
push 0x1007eac
push 0x41
jmp 0x10875a2
test byte [ebp + 0x10], 0x10
lea eax, [ebp - 0x20c]
je 0x108769a
push 1
push 1
push eax
push 0x1008198
call fcn.010872ff
cmp eax, esi
jge 0x108762c
mov ecx, dword [0x10b30cc]
cmp ecx, 0x10b30cc
je 0x1087624
test byte [ecx + 0x1c], 1
je 0x1087624
push eax
push 0x1007eac
push 0x42
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01028164
push 3
pop edi
jmp 0x10877e5
push dword [ebp - 0x210]
call dword [0x10013e0]
cmp eax, esi
jne 0x1087662
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10877e5
test byte [eax + 0x1c], 1
je 0x10877e5
push 0x1007eac
push 0x43
jmp 0x10875a2
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [0x10013f0]
test eax, eax
jne 0x10876e3
mov eax, dword [0x10b30cc]
cmp eax, 0x10b30cc
je 0x10877e5
test byte [eax + 0x1c], 1
je 0x10877e5
push 0x1007eac
push 0x44
jmp 0x10875a2
push dword [ebp - 0x210]
push 0x104
push eax
call fcn.0104391f
cmp eax, esi
jge 0x10876e3
mov ecx, dword [0x10b30cc]
cmp ecx, 0x10b30cc
je 0x10877e5
test byte [ecx + 0x1c], 1
je 0x10877e5
push eax
push 0x1007eac
push 0x45
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01028164
jmp 0x10877e5
cmp dword [ebp + 0xc], esi
jbe 0x108777f
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push ebx
call fcn.01082497
add esp, 0x10
test eax, eax
jl 0x10877c2
push ebx
call dword [0x10013ec]
test eax, eax
je 0x10877e3
test byte [ebp + 0x10], 1
jne 0x10877e3
test byte [ebp + 0x10], 2
je 0x1087775
lea eax, [ebp - 0x240]
push eax
push 0
push ebx
call dword [0x1001290]
test eax, eax
je 0x1087775
test esi, esi
je 0x1087757
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [0x1001294]
test eax, eax
jle 0x1087775
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 0x10876ec
test byte [ebp + 0x10], 2
je 0x10877e5
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0x18]
push ebx
call fcn.01082497
add esp, 0x10
test eax, eax
jge 0x10877e3
mov ecx, dword [0x10b30cc]
cmp ecx, 0x10b30cc
je 0x10877e5
test byte [ecx + 0x1c], 1
je 0x10877e5
push eax
push 0x1007eac
push 0x47
jmp 0x10876d3
mov ecx, dword [0x10b30cc]
cmp ecx, 0x10b30cc
je 0x10877e5
test byte [ecx + 0x1c], 1
je 0x10877e5
push eax
push 0x1007eac
push 0x46
jmp 0x10876d3
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0107a6bf
leave
ret 0x14