Function at 0x1003cb00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100df385
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101151a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 3
xorps xmm0, xmm0
mov esi, dword [ebp + 0x10]
movlpd qword [ebp - 0x14], xmm0
jne 0x1003cdc4
mov dword [ebp - 0x18], 0
push esi
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.10040620
add esp, 0x10
test esi, esi
je 0x1003cb7a
cmp byte [esi + 4], 0
je 0x1003cb7a
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x1003cc7b
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1003cd0c
cmp dword [edi + 0x2c], 0
je 0x1003cd0c
add edi, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1003cbb3
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1003cbd3
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.1003c890
add esp, 0xc
mov ebx, dword [eax]
jmp 0x1003cc1f
test esi, esi
je 0x1003cbe8
mov dword [esi], 0
mov byte [esi + 4], 0
mov dword [esi + 8], 0x100e5570
test ebx, 0x400
je 0x1003cc16
push edi
call fcn.1003c5a0
add esp, 4
test al, al
je 0x1003cc0f
test bl, 0x10
mov eax, 0xb
mov ebx, 4
cmovne ebx, eax
jmp 0x1003cc1f
mov ebx, 9
jmp 0x1003cc1f
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
test esi, esi
je 0x1003cc29
cmp byte [esi + 4], 0
jne 0x1003cc75
mov eax, dword [ebp - 0x18]
push esi
add eax, 4
push ebx
push eax
call fcn.1003cb00
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
add edi, eax
mov dword [ebp - 0x10], edi
adc ebx, edx
mov dword [ebp - 0x1c], ebx
test esi, esi
je 0x1003cc54
cmp byte [esi + 4], 0
jne 0x1003cc7b
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.10040ca0
add esp, 8
test esi, esi
je 0x1003cb91
cmp byte [esi + 4], 0
je 0x1003cb91
jmp 0x1003cc7b
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1003cdae
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x1003cdae
test esi, esi
je 0x1003cdae
lea eax, [esi + 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10040390
mov ecx, dword [esi + 0x18]
add esp, 8
cmp ecx, 8
jb 0x1003cce8
mov eax, dword [esi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003ccde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
mov eax, edx
push ecx
push eax
call fcn.100ab029
add esp, 8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x30
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.100ab029
add esp, 8
jmp 0x1003cdae
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003cd8c
or eax, 0xffffffff
lock xadd dword [edi], eax
add eax, 0xffffffff
jne 0x1003cd8c
test edi, edi
je 0x1003cd8c
lea eax, [edi + 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.10040390
mov ecx, dword [edi + 0x18]
add esp, 8
cmp ecx, 8
jb 0x1003cd6d
mov eax, dword [edi + 4]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1003cd63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003cdcc
mov eax, edx
push ecx
push eax
call fcn.100ab029
add esp, 8
xor eax, eax
mov dword [edi + 0x14], 0
push 0x30
push edi
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
call fcn.100ab029
add esp, 8
mov edi, dword [ebp - 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003cde0
add esp, 0xc
test esi, esi
je 0x1003cda8
cmp byte [esi + 4], 0
jne 0x1003cdae
add edi, 1
adc ebx, 0
mov eax, edi
mov edx, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
jmp 0x1003cd8f
call fcn.100ba0f9
int3