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

Disassembly:
push 0xffffffffffffffff
push 0x101ec801
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x274]
mov dword [esp + 0x40], ecx
push edi
call fcn.10041fde
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.101d42d4
mov ebp, eax
xor ebx, ebx
push edi
push ebp
mov dword [esp + 0x2c], ebp
mov word [ebp + esi*2], bx
call fcn.10041fb9
mov edi, dword [esp + 0x280]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x288]
add esp, 0x10
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x18]
push 0x10240938
push ecx
call fcn.10043489
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0x20], esi
jne 0x100ec2b7
mov dword [esp + 0x14], 1
jmp 0x100ec2ba
mov word [esi], bx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.101d3c7f
mov eax, dword [esp + 0x10]
mov dword [esp + 0x268], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100ec466
test al, 0x10
je 0x100ec36f
cmp dword [esp + 0x24], ebx
je 0x100ec2f7
cmp dword [esp + 0x14], ebx
jne 0x100ec35a
mov ecx, dword [0x10253adc]
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x26c], 1
mov dword [esp + 0x3c], 1
call fcn.101d3d52
mov esi, dword [edi + 8]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x40], ebx
lea eax, [esi + 1]
push eax
call fcn.100ecaf0
mov eax, dword [edi + 4]
lea ecx, [esp + 0x34]
lea edx, [esi + esi*2]
push ecx
lea ecx, [eax + edx*4]
call fcn.100ec1f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x268], bl
call fcn.101d3c0b
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push ebp
push edi
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.100ebf40
jmp 0x100ec408
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.101d5140
test eax, eax
je 0x100ec46d
mov ecx, dword [0x10253adc]
mov dword [esp + 0x28], ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0x26c], 2
mov dword [esp + 0x30], ebx
call fcn.101d3d52
mov esi, dword [edi + 8]
mov eax, dword [esp + 0x50]
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.100ecaf0
mov eax, dword [edi + 4]
lea edx, [esi + esi*2]
lea ecx, [esp + 0x28]
lea esi, [eax + edx*4]
push ecx
mov ecx, esi
call fcn.101d3d52
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x268], bl
mov dword [esi + 4], edx
mov eax, dword [esp + 0x30]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x50]
mov eax, dword [ebp]
sar ecx, 0xa
add eax, ecx
lea ecx, [esp + 0x28]
mov dword [ebp], eax
call fcn.101d3c0b
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x100ec41b
add esi, 2
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x268], 0xffffffff
call fcn.101d3c0b
cmp dword [esp + 0x14], ebx
je 0x100ec291
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.101d42fd
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x25c
ret 0xc
mov edx, dword [esp + 0x1c]
push edx
jmp 0x100ec472
mov eax, dword [esp + 0x1c]
push eax
call fcn.101d42fd
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x268], 0xffffffff
call fcn.101d3c0b
xor eax, eax
jmp 0x100ec44b