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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fb4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x250], ecx
xor edi, edi
mov byte [ebp - 0x21e], 0
mov byte [ebp - 0x21f], 1
mov byte [ebp - 0x21d], 0
mov dword [ebp - 0x224], edi
mov dword [eax], edi
mov dword [ecx], edi
test esi, esi
jne 0x10056f96
test ebx, ebx
je 0x10057151
mov dword [ebp - 0x248], edi
mov dword [ebp - 4], 0
test esi, esi
jne 0x10057158
push ebx
call dword [sym.imp.SHLWAPI.dll_StrDupW]
mov ecx, eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x238], ecx
mov edi, ecx
mov dword [ebp - 0x234], edi
mov esi, ecx
mov dword [ebp - 0x23c], esi
cmp word [ecx], 0x22
jne 0x10057020
xor al, al
mov byte [ebp - 0x21f], al
mov byte [ebp - 0x23d], al
lea esi, [ecx + 2]
mov dword [ebp - 0x23c], esi
mov ecx, esi
mov dword [ebp - 0x238], ecx
jmp 0x10057000
movzx eax, word [esi]
test ax, ax
je 0x10057055
cmp eax, 0x22
je 0x1005704d
add esi, 2
mov dword [ebp - 0x23c], esi
mov edi, esi
mov dword [ebp - 0x234], edi
jmp 0x10057000
mov ecx, eax
mov dword [ebp - 0x238], ecx
movzx eax, word [esi]
test ax, ax
je 0x10057055
cmp eax, 0x20
je 0x1005704d
cmp eax, 9
je 0x1005704d
add esi, 2
mov dword [ebp - 0x23c], esi
mov edi, esi
mov dword [ebp - 0x234], edi
jmp 0x10057028
mov edi, esi
mov dword [ebp - 0x234], edi
movzx eax, word [edi]
mov dword [ebp - 0x230], eax
xor eax, eax
mov word [edi], ax
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
push str..exe
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
mov ebx, eax
add ebx, ebx
mov dword [ebp - 0x244], ebx
je 0x100570b2
cmp ebx, 0x208
jae 0x1005710e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10057100
test al, 0x10
je 0x10057100
mov dword [ebp - 0x244], 0
mov ebx, dword [ebp - 0x230]
mov word [edi], bx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], eax
cmp word [esi], 0
je 0x10057144
cmp byte [ebp - 0x21f], 0
je 0x10057144
add esi, 2
mov dword [ebp - 0x23c], esi
mov edi, esi
mov dword [ebp - 0x234], edi
mov al, 1
mov byte [ebp - 0x21d], al
mov byte [ebp - 0x229], al
mov eax, dword [ebp - 0x228]
jmp 0x10057020
inc ebx
mov dword [ebp - 0x244], ebx
inc ebx
mov dword [ebp - 0x244], ebx
test ebx, ebx
je 0x100570b2
cmp ebx, 0x208
jae 0x100570b2
mov ebx, dword [ebp - 0x230]
mov word [edi], bx
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x238], esi
cmp byte [ebp - 0x21d], 0
je 0x1005725f
mov eax, dword [ebp - 0x228]
jmp 0x10057195
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x100572ee
push esi
call fcn.10056ed0
test eax, eax
je 0x10057151
push esi
call fcn.10002a00
test eax, eax
jne 0x10057151
test ebx, ebx
je 0x10057179
cmp word [ebx], ax
jne 0x10057265
mov al, 1
mov byte [ebp - 0x21e], al
mov byte [ebp - 0x22a], al
mov eax, esi
mov dword [ebp - 0x228], eax
mov ebx, dword [ebp - 0x250]
mov ecx, eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100571a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 6]
mov dword [ebp - 0x230], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10057245
push 0x10209334
push dword [ebp - 0x230]
push eax
call fcn.10057d20
cmp byte [ebp - 0x21d], 0
je 0x100571f1
movzx ebx, word [edi]
xor eax, eax
mov word [edi], ax
push dword [ebp - 0x228]
push dword [ebp - 0x230]
push dword [ebp - 0x224]
call fcn.10057c60
push 0x10209334
push dword [ebp - 0x230]
push dword [ebp - 0x224]
call fcn.10057c60
cmp byte [ebp - 0x21d], 0
je 0x1005725f
mov word [edi], bx
push edi
push dword [ebp - 0x230]
mov edi, dword [ebp - 0x224]
push edi
call fcn.10057c60
mov ebx, dword [ebp - 0x228]
jmp 0x1005726b
xor al, al
mov byte [ebp - 0x21d], al
mov byte [ebp - 0x229], al
mov byte [ebp - 0x21e], al
mov byte [ebp - 0x22a], al
mov ebx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrDupW]
call esi
mov ecx, dword [ebp - 0x254]
mov dword [ecx], eax
cmp byte [ebp - 0x21d], 0
jne 0x1005728e
cmp byte [ebp - 0x21e], 0
je 0x10057290
mov ebx, edi
push ebx
call esi
mov ecx, dword [ebp - 0x250]
mov dword [ecx], eax
mov edi, 1
mov dword [ebp - 0x24c], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x100572cc
mov eax, dword [ebp - 0x248]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x100572df
push eax
call esi
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100572ec
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret