Function at 0x1000cb50
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x10014034]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push edi
push 0x230
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0xc]
add esp, 0xc
push 0xffffffffffffffff
push eax
lea eax, [esi + 0x22]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
ja case.0x1000cba1.33
movzx ecx, byte [eax + 0x1000cdc8]
jmp dword [ecx*4 + 0x1000cdb8]
push 0x8007000e
call fcn.100091a0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x1000cd98
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x1000cbeb
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1000db42
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000cbd8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x1000cc19
mov byte [esi + 0x20], bl
jmp 0x1000cc2d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and cl, al
mov byte [esi + 0x20], cl
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xc]
push eax
call edi
test eax, eax
je 0x1000cc95
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1000cc95
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xc]
push ecx
call edi
test eax, eax
jne 0x1000cc79
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push 0x80070057
call fcn.100091a0
lea edx, [esp + 0x3c]
push edx
lea ebx, [esp + 0x30]
call fcn.1000c2d0
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
xor ebx, ebx
jmp 0x1000cc9a
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x1000ccfd
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1000ccfd
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
call edi
test eax, eax
jne 0x1000cce0
push 0x80070057
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.100091a0
lea eax, [esp + 0x3c]
push eax
lea ebx, [esp + 0x30]
call fcn.1000c2d0
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x14], edx
xor ebx, ebx
jmp 0x1000cd07
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x1000cd68
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1000cd68
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x20]
push edx
call edi
test eax, eax
jne 0x1000cd4d
push 0x80070057
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.100091a0
lea eax, [esp + 0x3c]
push eax
lea ebx, [esp + 0x30]
call fcn.1000c2d0
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0xc], edx
jmp 0x1000cd72
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x1000cd84
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x1000cd98
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov ecx, dword [esp + 0x4c]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1000db42
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100091a0
mov dl, 0xcb
add byte [eax], dl
test al, 0xcb
add byte [eax], dl
outsd dx, dword [esi]
int3