Function at 0x1000bce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002527d
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x10038070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x12c], edi
mov esi, ecx
cmp dword [edi + 0x14], 0x10
jb 0x1000bd21
mov eax, dword [edi]
jmp 0x1000bd23
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1000bd35
mov ecx, edi
call fcn.1000bc20
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 0x10
jb 0x1000bd6c
mov esi, dword [esi]
lea ecx, [ebp - 0x30]
call fcn.10008510
push esi
call fcn.100028e0
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1000bd8c
lea ecx, [ebp - 0x30]
call fcn.10008580
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.1000c4e0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
cmp esi, edi
je 0x1000be23
mov edx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x68]
push esi
call fcn.1000ca00
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000bc20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1000be1c
mov ecx, dword [ebp - 0x68]
inc eax
cmp eax, 0x1000
jb 0x1000be13
test cl, 0x1f
jne 0x1000beb6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000beb6
sub ecx, eax
cmp ecx, 4
jb 0x1000beb6
cmp ecx, 0x23
ja 0x1000beb6
mov ecx, eax
push ecx
call fcn.1000e38f
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x1000bdb5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
push eax
movq qword [ebp - 0x3c], xmm0
call fcn.1000c4e0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x3c]
cmp esi, dword [ebp - 0x38]
je 0x1000c06e
nop
mov edx, dword [ebp - 0x12c]
lea ecx, [ebp - 0x68]
push esi
call fcn.1000ca00
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
cmovae eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0xc0
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10011120
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x128]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.1000c650
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x1000bebb
mov eax, dword [esi]
mov dword [ebp - 0x130], eax
jmp 0x1000bec1
call fcn.10013701
mov dword [ebp - 0x130], esi
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x1000beff
cmp byte [ebp - 0x2c], 0
je 0x1000bedb
push edi
call fcn.100023d0
add esp, 4
mov byte [ebp - 0x2c], 0
push 0
push dword [ebp - 0x130]
push edi
call fcn.10001de0
add esp, 0xc
test eax, eax
jne 0x1000beff
push edi
call fcn.10002b70
add esp, 4
test eax, eax
sete byte [ebp - 0x2c]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x30]
call fcn.10008760
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0xe0], 0
je 0x1000bfb6
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x44]
call fcn.10008da0
mov byte [ebp - 4], 6
cmp byte [ebp - 0x40], 0
je 0x1000bf84
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0xe0]
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x1000bf84
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 4
cmp dword [ecx + 0x38], 0
cmovne edx, dword [ecx + 0xc]
or edx, 4
push edx
call fcn.10008330
mov byte [ebp - 4], 7
call fcn.1000cbf1
test al, al
jne 0x1000bf99
mov ecx, dword [ebp - 0x44]
call fcn.10009610
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov ecx, dword [eax + ecx + 0x38]
test ecx, ecx
je 0x1000bfb2
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.1000b6a0
test eax, eax
jne 0x1000bff0
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov edx, dword [ecx + 0xc]
or edx, 2
mov eax, edx
or eax, 4
cmp dword [ecx + 0x38], 0
cmovne eax, edx
push eax
call fcn.10008330
lea ecx, [ebp - 0xb0]
call fcn.1000c5d0
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0xb0], vtable.std::ios_base.0
call fcn.1000d473
mov byte [ebp - 4], 3
add esp, 4
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1000c062
mov ecx, dword [ebp - 0x68]
inc eax
cmp eax, 0x1000
jb 0x1000c059
test cl, 0x1f
jne 0x1000beb6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000beb6
sub ecx, eax
cmp ecx, 4
jb 0x1000beb6
cmp ecx, 0x23
ja 0x1000beb6
mov ecx, eax
push ecx
call fcn.1000e38f
add esp, 4
add esi, 0x18
cmp esi, dword [ebp - 0x38]
jne 0x1000be50
cmp dword [ebp - 0x30], 0
je 0x1000c0da
mov eax, dword [ebp - 0x28]
mov esi, eax
mov edi, dword [ebp - 0x24]
cmp eax, edi
je 0x1000c091
mov ecx, esi
call fcn.100089a0
add esi, 0x18
cmp esi, edi
jne 0x1000c080
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov esi, eax
cmp eax, edi
je 0x1000c0b1
mov ecx, esi
call fcn.100089a0
add esi, 0x18
cmp esi, edi
jne 0x1000c0a0
mov eax, dword [ebp - 0x1c]
cmp byte [ebp - 0x2c], 0
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
je 0x1000c0ca
push esi
call fcn.100023d0
add esp, 4
mov byte [ebp - 0x2c], 0
push esi
call fcn.10002900
add esp, 4
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x3c]
call fcn.10008e30
lea ecx, [ebp - 0x50]
call fcn.10008e30
lea ecx, [ebp - 0x30]
call fcn.10008510
lea ecx, [ebp - 0x1c]
call fcn.10008e30
lea ecx, [ebp - 0x28]
call fcn.10008e30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ddda
mov esp, ebp
pop ebp
ret