Function at 0x10bc57a
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x10ed860]
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 0x10bc609
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc83a
test byte [eax + 0x1c], 1
je 0x10bc83a
push 0x100b42c
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
jmp 0x10bc83a
cmp dword [ebp + 0x18], esi
jne 0x10bc631
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc83a
test byte [eax + 0x1c], 1
je 0x10bc83a
push 0x100b42c
push 0x42
jmp 0x10bc5f9
test byte [ebp + 0x10], 0x10
lea eax, [ebp - 0x20c]
je 0x10bc6ef
push esi
push esi
push eax
push 0x100b810
call fcn.010bc252
cmp eax, esi
jge 0x10bc681
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc679
test byte [ecx + 0x1c], 1
je 0x10bc679
push eax
push 0x100b42c
push 0x43
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
push 3
pop edi
jmp 0x10bc83a
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
jne 0x10bc6b7
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc83a
test byte [eax + 0x1c], 1
je 0x10bc83a
push 0x100b42c
push 0x44
jmp 0x10bc5f9
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x10bc738
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bc83a
test byte [eax + 0x1c], 1
je 0x10bc83a
push 0x100b42c
push 0x45
jmp 0x10bc5f9
push dword [ebp - 0x210]
push 0x104
push eax
call fcn.0104dd4c
cmp eax, esi
jge 0x10bc738
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc83a
test byte [ecx + 0x1c], 1
je 0x10bc83a
push eax
push 0x100b42c
push 0x46
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010294b2
jmp 0x10bc83a
cmp dword [ebp + 0xc], esi
jbe 0x10bc7d4
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push ebx
call fcn.010ad159
add esp, 0x10
test eax, eax
jl 0x10bc817
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10bc838
test byte [ebp + 0x10], 1
jne 0x10bc838
test byte [ebp + 0x10], 2
je 0x10bc7ca
lea eax, [ebp - 0x240]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10bc7ca
test esi, esi
je 0x10bc7ac
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x10bc7ca
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 0x10bc741
test byte [ebp + 0x10], 2
je 0x10bc83a
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0x18]
push ebx
call fcn.010ad159
add esp, 0x10
test eax, eax
jge 0x10bc838
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc83a
test byte [ecx + 0x1c], 1
je 0x10bc83a
push eax
push 0x100b42c
push 0x48
jmp 0x10bc728
mov ecx, dword [0x10ed030]
cmp ecx, 0x10ed030
je 0x10bc83a
test byte [ecx + 0x1c], 1
je 0x10bc83a
push eax
push 0x100b42c
push 0x47
jmp 0x10bc728
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010a0c4b
leave
ret 0x14