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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x7f307090]
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x7f307acc], edi
mov dword [ebp - 4], eax
je 0x7f2e1b4e
mov eax, dword [0x7f307a08]
cmp eax, edi
jne 0x7f2e1b37
push 0x7f2d2d9c
call fcn.7f2d3fba
cmp eax, edi
mov dword [0x7f307a08], eax
je 0x7f2e1b47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x7f2e1d5f
push 0x7f
jmp 0x7f2e1d57
mov ebx, dword [ebp + 8]
cmp ebx, edi
jne 0x7f2e1b5c
push 3
jmp 0x7f2e1d57
cmp dword [ebp + 0x10], edi
je 0x7f2e1d55
cmp dword [ebp + 0xc], edi
jne 0x7f2e1d55
push ebx
call fcn.7f2da99a
cmp eax, 0x104
pop ecx
jbe 0x7f2e1b83
push 0x6f
jmp 0x7f2e1d57
cmp ebx, 0xffff
jbe 0x7f2e1c33
push ebx
call fcn.7f2da99a
mov esi, eax
mov eax, dword [0x7f307088]
inc esi
imul eax, esi
pop ecx
push eax
call fcn.7f2d53a1
test eax, eax
je 0x7f2e1bc6
mov eax, dword [0x7f307088]
imul eax, esi
cmp eax, edi
je 0x7f2e1bc6
add eax, 3
and eax, 0xfffffffc
call fcn.7f2fd060
mov ebx, esp
jmp 0x7f2e1bc8
xor ebx, ebx
cmp ebx, edi
je 0x7f2e1d5d
cmp dword [0x7f307acc], edi
mov dword [ebp + 0xc], edi
jne 0x7f2e1be4
cmp byte [0x7f30708d], 0
je 0x7f2e1be9
mov edi, 0x400
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
mov eax, dword [0x7f307ac8]
jne 0x7f2e1bfd
mov eax, dword [0x7f307084]
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [0x7f307088]
imul ecx, esi
push 0x7f2d2c28
push ecx
push ebx
push esi
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp + 0xc], 0
jne 0x7f2e1c2b
test eax, eax
je 0x7f2e1c2b
push 0
jmp 0x7f2e1c2d
push 0x7b
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x7f2e1d5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x7f2e1d5d
cmp byte [ebx], al
mov esi, ebx
je 0x7f2e1cbd
mov eax, dword [0x7f307ac8]
cmp eax, 0x3a4
je 0x7f2e1c7e
cmp eax, 0x3b5
je 0x7f2e1c7e
cmp eax, 0x3b6
je 0x7f2e1c7e
cmp eax, 0x3a8
je 0x7f2e1c7e
cmp eax, 0x551
je 0x7f2e1c7e
cmp eax, 0xd698
jne 0x7f2e1ca3
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x7f2e1c9e
lea eax, [esi + 1]
cmp byte [eax], 0
je 0x7f2e1c9e
mov esi, eax
mov eax, dword [0x7f307ac8]
jmp 0x7f2e1cb7
mov eax, dword [0x7f307ac8]
mov cl, byte [esi]
cmp cl, 0x3f
je 0x7f2e1d51
cmp cl, 0x2a
je 0x7f2e1d51
inc esi
cmp byte [esi], 0
jne 0x7f2e1c54
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x7f2e1d5f
push 0x50
pop ecx
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x7f2e1cf6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0x10]
xor eax, eax
push 9
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x140]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x13c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x138]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x134]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x130]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x12c]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x128]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x124]
mov dword [edx + 0x20], eax
xor eax, eax
mov dword [edx], esi
inc eax
jmp 0x7f2e1d5f
push 0x7b
jmp 0x7f2e1d57
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea esp, [ebp - 0x150]
mov ecx, dword [ebp - 4]
call fcn.7f2fd123
pop edi
pop esi
pop ebx
leave
ret 0xc