Function at 0x10012510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp ebx, 7
jbe 0x10012849
mov edx, dword [ebp + 0xc]
cmp dword [edx], ebx
jne 0x10012849
movzx eax, word [edx + 6]
xor ecx, ecx
test ax, ax
cmove edx, ecx
test edx, edx
mov word [ebp - 0x2c], ax
je 0x100128bf
movzx eax, word [edx + 4]
cmp eax, 0x10
jb 0x10012849
cmp dword [edx], eax
jb 0x10012849
test al, 7
jne 0x10012846
mov esi, edx
lea ecx, [eax - 0x10]
sub ebx, eax
mov edi, dword [ebp + 0xc]
add eax, edi
mov dword [ebp - 0x3c], eax
lea edx, [esi + 8]
lea eax, [edi + 4]
mov dword [ebp - 0x34], esi
test esi, esi
mov dword [ebp - 0x30], edx
cmove edx, eax
cmp ecx, 0x103
ja 0x10012846
shr ecx, 2
movzx esi, word [edx]
mov edx, esi
mov dword [ebp - 0x38], esi
cmp ecx, esi
jb 0x10012846
cmp dword [ebp + 0x14], 1
jne 0x100125c2
cmp word [ebp - 0x38], 0
jne 0x10012846
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x14]
mov dword [edx], 0xffffffff
movzx eax, word [ebp - 0x2c]
push eax
push ecx
push ebx
push ebx
push edx
call fcn.10012260
add esp, 0x14
mov dword [ebp - 0x2c], ebx
test ebx, ebx
je 0x10012640
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
movzx ebx, word [eax + 6]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov edi, eax
test bx, bx
je 0x10012908
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
movzx eax, word [eax + 4]
add edi, eax
push dword [ebp - 0x2c]
push dword [ebp - 0x3c]
push edi
call fcn.100c4df0
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x100128cf
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
cmp word [eax + 4], 0x10
mov dword [ebp - 0x2c], edi
je 0x100126b4
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 0xc]
add esi, 0x10
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
movzx eax, word [eax + 4]
add eax, 0xfffffff0
cmp eax, 8
jne 0x10012910
movsd xmm0, qword [esi]
mov eax, dword [ebp - 0x34]
movsd qword [eax], xmm0
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
movzx ebx, word [eax]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov ecx, edi
call esi
mov word [eax + 8], bx
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x100128f5
lea eax, [eax*4]
lea esi, [eax + eax*4]
push esi
call fcn.100c1c01
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
add eax, esi
mov dword [ebp - 0x40], eax
xor esi, esi
mov ecx, dword [ebp - 0x30]
add ecx, esi
je 0x10012854
call fcn.100232b0
add esi, 0x14
cmp dword [ebp - 0x34], esi
jne 0x100126fa
cmp word [ebp - 0x38], 0
je 0x1001278a
xor esi, esi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x20]
mov edi, dword [eax + esi*4]
push edi
call fcn.10023680
add esp, 4
test al, al
jne 0x10012885
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100127ce
mov ebx, esp
push eax
push eax
mov eax, esp
push ecx
push edi
push eax
call fcn.100236a0
add esp, 0xc
lea edi, [ebp - 0x28]
mov ecx, edi
call fcn.100232e0
mov esp, ebx
cmp esi, dword [ebp - 0x38]
jae 0x1001286f
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
push edi
call fcn.100233c0
mov ecx, edi
call fcn.1006f470
inc esi
add ebx, 0x14
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x38], esi
jne 0x10012721
mov edi, esp
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
call esi
mov esp, edi
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x4c], esp
push eax
push eax
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov ebx, esp
mov dword [ebx], 0
test edi, edi
je 0x10012813
mov dword [ebp - 0x48], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
inc eax
cmp eax, 2
jae 0x1001282d
cmp edi, 0xffffffff
je 0x10012807
mov dword [ecx], edi
call fcn.1007c020
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x48]
call fcn.10041e50
mov esp, dword [ebp - 0x50]
lea edi, [ebp - 0x28]
mov ecx, edi
call fcn.100232e0
mov esp, dword [ebp - 0x4c]
jmp 0x10012763
call fcn.1007c020
push dword [ebx]
call fcn.10084410
mov ecx, ebx
add esp, 4
mov dword [ebx], 0
jmp 0x100127fb
mov edi, dword [ebp + 8]
mov dword [edi], 0
jmp 0x100127ba
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x23
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.100f2480
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x587
push str....._buildtools_third_partylibc_trunkinclude_vector
jmp 0x10012865
mov eax, dword [ebp + 8]
mov dword [eax], 0
cmp dword [ebp - 0x30], 0
jne 0x10012922
cmp dword [ebp - 0x2c], 0
mov edi, dword [ebp + 8]
je 0x100127ba
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push 1
call esi
jmp 0x100127ba
mov esi, edx
add ebx, 0xfffffff8
mov edi, dword [ebp + 0xc]
lea eax, [edi + 8]
jmp 0x1001257e
mov eax, dword [ebp - 0x40]
movzx edi, word [eax]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [section..00cfg]
mov dword [ebp - 0x2c], ebx
mov ecx, ebx
call esi
mov word [eax + 4], di
jmp 0x100126cf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x40], 0
jmp 0x1001278a
add edi, 8
jmp 0x10012631
push eax
push esi
push dword [ebp - 0x34]
call fcn.100c4df0
add esp, 0xc
jmp 0x100126b1
neg dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
lea eax, [eax + eax*4]
mov ecx, dword [ebp - 0x30]
lea ebx, [ecx + eax*4]
add ebx, 0xffffffec
mov ecx, ebx
call fcn.1006f470
add ebx, 0xffffffec
add dword [ebp - 0x34], 0x14
jne 0x10012934
push dword [ebp - 0x30]
call fcn.100c1c31
add esp, 4
jmp 0x10012898