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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x1099a38]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x838], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x20]
xor ebx, ebx
push esi
push 0x101665c
mov dword [ebp - 0x83c], eax
xor edi, edi
mov dword [ebp - 0x844], ebx
mov dword [ebp - 0x834], ebx
call fcn.01071b53
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x104bf3b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0x1016624
call fcn.01071ac0
pop ecx
pop ecx
call esi
jmp 0x104c3c5
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.msvcrt.dll__mbslwr]
pop ecx
xor eax, eax
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x318], cl
inc eax
test cl, cl
jne 0x104bf4b
lea eax, [ebp - 0x318]
push eax
call fcn.01070f95
cmp eax, ebx
mov dword [ebp - 0x830], eax
je 0x104c3b8
cmp byte [eax], 0
je 0x104c3b8
lea ecx, [ebp - 0x318]
cmp eax, ecx
jbe 0x104bfc5
mov byte [eax - 1], 0
mov al, byte [0x10f54c0]
cmp al, byte [ebp - 0x318]
mov edx, 0x10f54c0
jne 0x104bfad
test al, al
je 0x104bfb2
inc edx
mov al, byte [edx]
inc ecx
cmp al, byte [ecx]
je 0x104bfa1
cmp byte [edx], 0
jne 0x104bfc5
mov al, byte [ecx]
test al, al
je 0x104bfc2
cmp al, 0x5c
jne 0x104bfc5
mov dword [ebp - 0x844], ecx
xor edi, edi
inc edi
cmp dword [ebp + 0x10], ebx
jne 0x104c055
cmp edi, ebx
je 0x104c018
mov eax, dword [ebp - 0x844]
cmp eax, ebx
mov esi, 0x100fc8c
lea edi, [ebp - 0x110]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
je 0x104c066
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104bfee
lea edi, [ebp - 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104bffe
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x104c066
xor eax, eax
mov cl, byte [ebp + eax - 0x318]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x104c01a
cmp byte [ebp - 0x110], cl
je 0x104c066
cmp byte [ebp - 0x10f], 0x3a
jne 0x104c066
cmp byte [ebp - 0x10e], cl
jne 0x104c066
mov byte [ebp - 0x10e], 0x5c
mov byte [ebp - 0x10d], cl
jmp 0x104c066
push 6
pop ecx
mov esi, 0x100fc98
lea edi, [ebp - 0x110]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x214]
push eax
call ebx
cmp eax, 0xffffffff
je 0x104c378
push 0x208
lea eax, [ebp - 0x82c]
push eax
push 0xf035
xor edi, edi
push edi
mov dword [ebp - 0x82c], 0x207325
call fcn.01031fb1
xor eax, eax
mov cl, byte [ebp + eax - 0x214]
mov byte [eax + 0x10f6960], cl
inc eax
test cl, cl
jne 0x104c0a3
push 0x7ffd
mov esi, 0x10f6960
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.msvcrt.dll__mbslwr]
pop ecx
push eax
call fcn.01070f95
push eax
call dword [sym.imp.msvcrt.dll__mbsupr]
pop ecx
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
lea eax, [ebp - 0x82c]
push eax
mov esi, 0x1106960
push esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push esi
call fcn.010455a0
mov eax, dword [ebp - 0x83c]
cmp eax, edi
je 0x104c158
mov eax, dword [eax + 8]
test eax, 0x200000
je 0x104c158
test eax, 0x1000000
je 0x104c306
mov eax, dword [ebp - 0x83c]
push dword [eax + 0xc]
lea eax, [ebp - 0x624]
push dword [ebp - 0x830]
push dword [ebp - 0x830]
push 0x1016618
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0x624]
add esp, 0x14
mov dword [ebp - 0x830], eax
jmp 0x104c306
push 0x104
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x830]
push dword [ebp - 0x838]
call fcn.01070fc9
lea eax, [ebp - 0x41c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x104c2ad
push 0x104
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x830]
push dword [ebp - 0x838]
call fcn.01070fc9
push dword [ebp - 0x834]
lea eax, [ebp - 0xc]
push 0x1016610
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
lea eax, [ebp - 0xc]
add esp, 0xc
inc dword [ebp - 0x834]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104c1c7
lea edi, [ebp - 0x41c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104c1d7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x41c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
jne 0x104c187
cmp dword [ebp - 0x834], 0
je 0x104c2ad
mov eax, dword [ebp - 0x830]
lea edx, [ebp - 0x624]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x104c216
lea edi, [ebp - 0x624]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104c227
mov eax, dword [ebp - 0x830]
mov esi, 0x101660c
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x104c23e
lea edi, [ebp - 0x624]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104c24e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x104c26b
lea edi, [ebp - 0x624]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x104c27d
push dword [ebp - 0x840]
mov ecx, eax
push dword [ebp - 0x838]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0xf01a
lea eax, [ebp - 0x41c]
rep movsb byte es:[edi], byte [esi]
push eax
jmp 0x104c2c0
push dword [ebp - 0x840]
push dword [ebp - 0x838]
push 0xf01a
push 0
lea eax, [ebp - 0x214]
push eax
push dword [0x10c3b64]
call fcn.01037ded
sub eax, 0
je 0x104c35f
dec eax
dec eax
je 0x104c35b
mov ecx, dword [ebp - 0x83c]
test ecx, ecx
je 0x104c306
or byte [ecx + 0xa], 0x20
mov edx, dword [ebp - 0x834]
test edx, edx
mov eax, dword [ecx + 8]
je 0x104c306
or eax, 0x1000000
dec edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
cmp dword [ebp + 0x10], 0
jne 0x104c391
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104c317
mov esi, 0x100fc6c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x214]
movsw word es:[edi], word [esi]
push eax
push dword [0x10f4470]
movsb byte es:[edi], byte [esi]
call fcn.010778b6
test eax, eax
je 0x104c391
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104c349
mov esi, 0x10102ac
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x104c391
xor eax, eax
jmp 0x104c3c5
push 0x10165d8
call fcn.01071aad
mov esi, 0x4c7
push esi
call fcn.01037f35
mov eax, esi
jmp 0x104c3c5
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x104c37f
mov esi, 0x100fcb4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [ebp - 0x834], 0
lea eax, [ebp - 0x624]
jne 0x104c3a6
mov eax, dword [ebp - 0x830]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.010304b6
jmp 0x104c3c5
push 0x1016590
call fcn.01071aad
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x1c