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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x21c], edx
xor cl, cl
mov dword [ebp - 0x218], eax
push edi
or edi, 0xffffffff
mov byte [ebp - 0x211], cl
xor ebx, ebx
mov eax, dword [eax + 0x38]
movzx esi, word [eax + ebx*2]
cmp esi, 0x22
je 0x4156ca
test si, si
je 0x40566e
test cl, cl
jne 0x405635
push esi
push 0x405748
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40566e
cmp edi, 0xffffffff
jne 0x405651
push esi
push 0x405740
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x4068dd
mov cl, byte [ebp - 0x211]
mov eax, dword [ebp - 0x218]
mov word [ebp + ebx*2 - 0x210], si
inc ebx
cmp ebx, 0x103
jb 0x405609
test ebx, ebx
je 0x4198bb
lea eax, [ebx + ebx]
cmp eax, 0x208
jae 0x4156d8
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
cmp edi, 0xffffffff
jne 0x4068ac
xor edi, edi
mov esi, 0x401630
mov eax, dword [esi]
test eax, eax
je 0x4056bd
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4057b5
add esi, 0x18
inc edi
cmp esi, 0x401a20
jle 0x40569e
mov ecx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov dword [0x42602c], 0xffffffff
push ecx
lea edx, [ebp - 0x210]
mov ecx, 0x2d
call fcn.00405bc7
cmp eax, 0x2d
je 0x4198d5
mov edx, dword [ebp - 0x218]
xor cl, cl
mov byte [ebp - 0x211], cl
cmp edi, 0xffffffff
je 0x4067e9
mov ecx, dword [edx + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405713
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
jne 0x415066
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret
test byte [esi + 8], 4
jne 0x4198c3
mov ecx, dword [ebp - 0x21c]
lea eax, [edi + edi*2]
mov ax, word [eax*8 + 0x401638]
mov dword [0x42602c], edi
mov word [ecx], ax
cmp edi, 0xffffffff
je 0x4056dc
mov edx, dword [ebp - 0x218]
cmp edi, 0x14
jne 0x4056fc
mov dword [edx + 0x40], 1
jmp 0x4056fc
xor ebx, ebx
mov eax, dword [edx + 0x38]
movzx esi, word [eax + ebx*2]
test si, si
je 0x40570d
cmp esi, 0x22
je 0x4156dd
test cl, cl
jne 0x406843
push esi
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x4169ff
mov edx, esi
mov ecx, 0x402200
call fcn.004024b1
test eax, eax
jne 0x4169ff
mov edx, dword [ebp - 0x218]
cmp esi, 0x2f
je 0x40570d
mov cl, byte [ebp - 0x211]
inc ebx
jmp 0x4067eb
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4068f1
mov ebx, edi
add edi, edi
cmp edi, 0x208
jae 0x4156d8
xor eax, eax
mov word [ebp + edi - 0x210], ax
jmp 0x405697
cmp byte [0x426004], 0
je 0x40566e
mov edi, ebx
jmp 0x405651
test al, 0x10
je 0x405697
jmp 0x4068be
mov eax, dword [ebp - 0x218]
lea esi, [ecx + 1]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x4198df
lea ecx, [esi + esi]
call fcn.0040592e
mov ecx, dword [ebp - 0x218]
add ebx, ebx
mov edx, esi
mov dword [ebp - 0x21c], eax
mov ecx, dword [ecx + 0x38]
add ecx, ebx
push ecx
mov ecx, eax
call fcn.00401da3
mov ecx, dword [ebp - 0x218]
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x4198f8
mov eax, dword [ebp - 0x218]
mov esi, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x3c], esi
xor eax, eax
mov word [ebx + ecx], ax
jmp 0x40572a
test cl, cl
sete byte [ebp - 0x211]
jmp 0x405635
call fcn.0041c651
test cl, cl
sete cl
inc ebx
mov byte [ebp - 0x211], cl
jmp 0x4067eb
mov edx, dword [ebp - 0x218]
jmp 0x40570d
or eax, 0xffffffff
jmp 0x40572c
cmp byte [0x426004], 0
je 0x4056bd
jmp 0x4057bf
mov eax, 0x2d
jmp 0x40572c
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4198e2
sub ecx, edx
sar ecx, 1
add esi, ecx
jmp 0x41507a
mov edx, esi
mov esi, dword [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00402c8a
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x38]
mov dword [eax + 0x3c], esi
xor eax, eax
mov word [ebx + ecx], ax
jmp 0x40572a