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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x234], eax
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
push 0x17c91a28
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x244], edi
call fcn.17c9f176
mov dword [ebp - 0x25c], eax
cmp esi, edi
je 0x17ca3287
mov eax, dword [ebp - 0x234]
cmp eax, edi
je 0x17ca3287
cmp ebx, edi
je 0x17ca3287
push dword [ebp - 0x23c]
mov dword [esi], edi
mov dword [ebx], edi
mov dword [eax], edi
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08339
cmp eax, edi
mov dword [ebp - 0x230], eax
jge 0x17ca2ea0
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push dword [ebp - 0x230]
push 0x17c919fc
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
jmp 0x17ca3291
movzx eax, word [ebp - 0x22c]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x24c], edi
cmp dword [0x17d26150], edi
jbe 0x17ca313d
mov edi, 0x17d260e8
cmp dword [edi - 8], 0
je 0x17ca2edd
push dword [edi - 4]
push dword [ebp + 8]
call fcn.17ca212c
test eax, eax
je 0x17ca303c
push dword [ebp - 0x258]
lea eax, [ebp - 0x22c]
push eax
call fcn.17d082d9
mov dword [ebp - 0x230], eax
test eax, eax
jl 0x17ca30a8
push dword [edi - 0xc]
lea eax, [ebp - 0x22c]
push eax
call fcn.17d083d6
mov dword [ebp - 0x230], eax
test eax, eax
jl 0x17ca30d4
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x17ca303c
test al, 0x10
jne 0x17ca303c
xor edx, edx
mov dword [ebp - 0x254], edx
mov dword [ebp - 0x250], edx
cmp dword [ebp + 0xc], edx
je 0x17ca2fb4
lea eax, [ebp - 0x254]
push eax
push 0x1f4
push 0xa
push dword [0x17d2b0e0]
push dword [ebp - 0x228]
call fcn.17cb3a94
mov dword [ebp - 0x230], eax
test eax, eax
jl 0x17ca3100
mov ecx, dword [edi + 4]
mov edx, dword [ebp - 0x250]
mov eax, dword [edi]
cmp edx, ecx
ja 0x17ca2fb4
jb 0x17ca2f90
cmp dword [ebp - 0x254], eax
ja 0x17ca2fb4
cmp dword [ebp - 0x25c], 0
je 0x17ca2fa5
cmp dword [ebp - 0x254], eax
jne 0x17ca2fa5
cmp edx, ecx
je 0x17ca2fb4
mov dword [ebp - 0x244], 1
jmp 0x17ca303c
mov eax, dword [edi - 0x10]
inc dword [ebp - 0x238]
sub eax, 0
je 0x17ca3039
dec eax
je 0x17ca3011
dec eax
je 0x17ca3009
dec eax
je 0x17ca2fdc
dec eax
jne 0x17ca303c
mov eax, dword [ebp - 0x234]
or dword [esi], 1
or dword [eax], 2
jmp 0x17ca303c
mov eax, dword [ebp - 0x234]
xor ecx, ecx
inc ecx
or dword [esi], ecx
or dword [eax], ecx
mov eax, dword [ebp - 0x254]
cmp eax, dword [edi]
jne 0x17ca3000
cmp edx, dword [edi + 4]
jne 0x17ca3000
mov dword [ebp - 0x248], ecx
jmp 0x17ca303c
and dword [ebp - 0x248], 0
jmp 0x17ca303c
or dword [esi], 2
or dword [ebx], 2
jmp 0x17ca303c
or dword [esi], 2
mov ecx, dword [ebp - 0x254]
xor eax, eax
inc eax
or dword [ebx], eax
cmp ecx, dword [edi]
jne 0x17ca3030
cmp edx, dword [edi + 4]
jne 0x17ca3030
mov dword [ebp - 0x240], eax
jmp 0x17ca303c
and dword [ebp - 0x240], 0
jmp 0x17ca303c
or dword [esi], 4
inc dword [ebp - 0x24c]
mov eax, dword [ebp - 0x24c]
add edi, 0x18
cmp eax, dword [0x17d26150]
jb 0x17ca2ec4
xor eax, eax
cmp dword [ebp - 0x240], eax
je 0x17ca3072
test byte [ebx], 2
jne 0x17ca3072
dec dword [ebp - 0x238]
and dword [esi], 0xfffffffd
and dword [ebx], 0xfffffffe
mov edi, dword [ebp - 0x234]
cmp dword [ebp - 0x248], eax
je 0x17ca3091
test byte [edi], 2
jne 0x17ca3091
dec dword [ebp - 0x238]
and dword [esi], 0xfffffffe
and dword [edi], 0xfffffffe
cmp dword [ebp - 0x238], eax
jne 0x17ca3182
mov eax, dword [ebp - 0x244]
jmp 0x17ca313f
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push dword [ebp - 0x230]
push 0x17c919fc
push 0x3c
jmp 0x17ca2e90
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push dword [ebp - 0x230]
push 0x17c919fc
push 0x3d
jmp 0x17ca2e90
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push dword [ebp - 0x230]
push dword [ebp - 0x228]
push 0x17c919fc
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
jmp 0x17ca3291
mov eax, edi
neg eax
sbb eax, eax
and eax, 0x49a001
add eax, 0x80070002
mov dword [ebp - 0x230], eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push dword [ebp - 0x230]
push dword [ebp - 0x23c]
push 0x17c919fc
push 0x3f
jmp 0x17ca312d
cmp dword [ebp + 0xc], eax
jne 0x17ca3213
push dword [0x17d2b118]
mov dword [ebp - 0x234], 1
call fcn.17c9feb1
test eax, eax
je 0x17ca31ae
mov dword [ebp - 0x234], 3
push dword [0x17d2b118]
call fcn.17c9fe93
test eax, eax
je 0x17ca31c4
add dword [ebp - 0x234], 2
mov edx, dword [ebp - 0x238]
cmp dword [ebp - 0x234], edx
je 0x17ca3213
mov ecx, 0x80070002
mov dword [ebp - 0x230], ecx
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push ecx
push dword [ebp - 0x234]
push edx
push 0x17c919fc
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17cb3a5b
jmp 0x17ca3291
mov eax, dword [esi]
test al, 2
je 0x17ca324e
test byte [ebx], 2
jne 0x17ca324e
mov ecx, 0x80070002
mov dword [ebp - 0x230], ecx
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push ecx
push dword [ebp - 0x23c]
push 0x17c919fc
push 0x41
jmp 0x17ca312d
test al, 1
je 0x17ca3291
test byte [edi], 2
jne 0x17ca3291
mov ecx, 0x80070002
mov dword [ebp - 0x230], ecx
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17ca3291
test byte [eax + 0x1c], 1
je 0x17ca3291
push ecx
push dword [ebp - 0x23c]
push 0x17c919fc
push 0x42
jmp 0x17ca312d
mov dword [ebp - 0x230], 0x80070057
lea eax, [ebp - 0x22c]
push eax
call fcn.17d08313
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x230]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.17ce4923
leave
ret 0x18