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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x226
mov word [ebp - 0x22c], ax
xor edi, edi
lea eax, [ebp - 0x22a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, edi
je 0x17ca402a
mov eax, dword [esi]
cmp eax, edi
je 0x17ca402a
push ebx
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08339
mov ebx, eax
cmp ebx, edi
jge 0x17ca3e3d
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca4019
test byte [eax + 0x1c], 1
je 0x17ca4019
push ebx
push 0x17c919fc
push 0x72
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
jmp 0x17ca4019
movzx eax, word [ebp - 0x22c]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], edi
cmp dword [0x17d26150], edi
jbe 0x17ca4019
mov edi, 0x17d260e4
cmp dword [edi - 4], 0
je 0x17ca3e76
push dword [edi]
call fcn.17ca2103
test eax, eax
je 0x17ca3f5f
push dword [ebp - 0x23c]
lea eax, [ebp - 0x22c]
push eax
call fcn.17d082d9
mov ebx, eax
test ebx, ebx
jl 0x17ca3f7f
push dword [edi - 8]
lea eax, [ebp - 0x22c]
push eax
call fcn.17d083d6
mov ebx, eax
test ebx, ebx
jl 0x17ca3fa6
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x17ca3fc5
lea eax, [ebp - 0x234]
push eax
push 0x1f4
push 0xa
push dword [0x17d2b0e0]
push dword [ebp - 0x228]
call fcn.17cb3a94
mov ebx, eax
test ebx, ebx
jl 0x17ca3fee
mov eax, dword [edi - 0xc]
sub eax, 0
je 0x17ca3f4d
dec eax
je 0x17ca3f39
dec eax
je 0x17ca3f25
dec eax
je 0x17ca3f11
dec eax
jne 0x17ca3f5f
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x34], eax
jmp 0x17ca3f5f
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x2c], eax
jmp 0x17ca3f5f
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x1c], eax
jmp 0x17ca3f5f
mov eax, dword [ebp - 0x234]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x14], eax
jmp 0x17ca3f5f
mov eax, dword [ebp - 0x234]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0xc], eax
inc dword [ebp - 0x238]
mov eax, dword [ebp - 0x238]
add edi, 0x18
cmp eax, dword [0x17d26150]
jb 0x17ca3e61
jmp 0x17ca4019
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca4019
test byte [eax + 0x1c], 1
je 0x17ca4019
push ebx
push 0x17c919fc
push 0x73
jmp 0x17ca3e2d
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca4019
test byte [eax + 0x1c], 1
je 0x17ca4019
push ebx
push 0x17c919fc
push 0x74
jmp 0x17ca3e2d
call fcn.17c9f115
mov ebx, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca4019
test byte [eax + 0x1c], 1
je 0x17ca4019
push ebx
push dword [ebp - 0x228]
push 0x17c919fc
push 0x75
jmp 0x17ca400e
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca4019
test byte [eax + 0x1c], 1
je 0x17ca4019
push ebx
push dword [ebp - 0x228]
push 0x17c919fc
push 0x76
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08313
mov eax, ebx
pop ebx
jmp 0x17ca402f
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.17ce4923
leave
ret 4