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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [0x1038974], ebx
je 0x100e0af
cmp byte [esi], bl
je 0x100e0af
push 0x2e
push esi
call fcn.01007829
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
jne 0x100de10
lea eax, [ebp - 0x220]
push esi
push eax
call edi
push 0x104
lea eax, [ebp - 0x220]
push 0x1001e08
push eax
call fcn.0100dbba
lea esi, [ebp - 0x220]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0100e7b4
mov eax, dword [ebp + 8]
cmp byte [eax + esi], 0
jne 0x100de45
mov dword [0x1038974], 6
jmp 0x100e0aa
mov eax, dword [ebp - 0x10]
cmp byte [eax + esi], 0
jne 0x100e041
mov eax, dword [ebp - 0xc]
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x100e041
cmp al, 0x2f
je 0x100e041
test byte [ebp + 0xd], 8
jne 0x100e026
mov word [0x10384d4], 1
mov dword [ebp - 4], ebx
cmp word [0x10384d4], 0x100
ja 0x100e034
cmp dword [ebp - 4], ebx
jne 0x100e034
mov ebx, dword [0x10384d4]
and ebx, dword [ebp + 0xc]
cmp bx, 1
jne 0x100df1f
test byte [ebp + 0xd], 0x80
je 0x100df1f
call fcn.0100cc36
test eax, eax
mov dword [ebp - 8], eax
jne 0x100debf
cmp dword [0x1038774], eax
je 0x100df1f
push 0x104
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov eax, dword [0x1038774]
test eax, eax
jne 0x100dee0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 3
push edi
push eax
call fcn.0100e587
mov eax, dword [ebp + 8]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call fcn.0100e461
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call fcn.0100e556
test eax, eax
jne 0x100e0aa
lea eax, [ebp - 4]
push eax
call fcn.0100e4ec
cmp bx, 0x80
jne 0x100df38
xor eax, eax
cmp dword [0x103876c], 2
setne al
push eax
jmp 0x100dfbc
cmp bx, 0x20
jne 0x100df9f
lea eax, [ebp - 0x11c]
push eax
push esi
call fcn.0100dd15
test eax, eax
lea eax, [ebp - 0x11c]
push eax
jne 0x100df98
push esi
call fcn.0100e8ee
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100df91
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0x104
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x100e026
lea eax, [ebp - 0x11c]
push eax
call fcn.0100e461
jmp 0x100dfc2
cmp bx, 0x10
jne 0x100dfb4
mov eax, dword [ebp + 8]
push 0
add eax, esi
push eax
call fcn.0100ea2c
jmp 0x100dfc2
cmp bx, 0x40
jne 0x100dfc7
push 0
push esi
call fcn.0100e644
mov dword [ebp - 4], eax
jmp 0x100e026
test bx, bx
je 0x100e026
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.0100e0c2
test eax, eax
je 0x100e026
mov eax, dword [ebp + 8]
push 0x104
add eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.0100dbba
lea eax, [ebp - 0x11c]
push eax
call fcn.0100e461
test eax, eax
mov dword [ebp - 4], eax
jne 0x100e013
mov dword [0x1038974], 1
jmp 0x100e026
push eax
call fcn.0100e556
test eax, eax
jne 0x100e026
lea eax, [ebp - 4]
push eax
call fcn.0100e4ec
shl word [0x10384d4], 1
xor ebx, ebx
jmp 0x100de7e
cmp dword [0x1038974], ebx
jne 0x100e0aa
cmp dword [ebp - 4], ebx
jmp 0x100e09e
push esi
call fcn.0100e461
push eax
mov dword [ebp - 4], eax
call fcn.0100e556
test eax, eax
jne 0x100e0aa
cmp dword [ebp - 4], ebx
je 0x100e06d
push 0x1001a20
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
jne 0x100e0aa
push dword [ebp - 4]
call fcn.0100e4d8
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push eax
call fcn.0100ddae
push eax
mov dword [ebp - 4], eax
call fcn.0100e556
test eax, eax
jne 0x100e0aa
mov dword [0x1038974], 3
mov eax, dword [ebp - 4]
jmp 0x100e0bb
mov dword [0x1038974], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8