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

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x20c]
cmp byte [ebp], 0
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x414c01
mov dx, word [0x50dc78]
xor eax, eax
mov word [esp + 0x10], dx
mov ecx, 0x3f
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x110], dx
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x112]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
stosw word es:[edi], ax
mov eax, ebp
sub edx, ebp
nop
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x414970
lea eax, [esp + 0x10]
push eax
call fcn.004efff8
mov al, byte [0x51fe9c]
add esp, 4
test al, al
je 0x4149b8
push ebp
push 0x51fe9c
lea ecx, [esp + 0x118]
push str._s_s
push ecx
call fcn.004326d1
lea edx, [esp + 0x120]
push edx
call fcn.004efff8
add esp, 0x14
mov edi, 0x50d1a8
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4149dc
mov edi, 0x50f428
mov esi, ebp
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x414a07
mov al, byte [0x51fe9c]
test al, al
je 0x414a07
push ebp
push 0x51fe9c
lea eax, [esp + 0x18]
push str._s_s
push eax
call fcn.004326d1
lea ecx, [esp + 0x20]
push ecx
call fcn.004efff8
add esp, 0x14
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov al, byte [esp + ecx + 0xe]
dec ecx
cmp al, 0x5c
jne 0x414a45
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0xf], al
or ecx, 0xffffffff
lea edi, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x10f], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call esi
cmp eax, 0xffffffff
jne 0x414ae4
lea eax, [esp + 0x110]
push eax
call esi
cmp eax, 0xffffffff
jne 0x414a79
mov ecx, dword [esp + 0xc]
push ebp
push str.Search_path__s_does_not_exist
jmp 0x414c07
xor eax, eax
nop
lea esp, [esp]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x414a80
mov al, byte [esp + 0x218]
test al, al
mov ebp, 0x51f4a8
jne 0x414aa5
mov ebp, 0x51fe70
mov eax, dword [ebp]
test eax, eax
mov dword [ebp + 8], eax
je 0x414b1a
mov eax, dword [eax]
test eax, eax
je 0x414b1a
lea esi, [eax + 4]
lea eax, [esp + 0x10]
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x414afa
test cl, cl
je 0x414ae0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x414afa
add eax, 2
add esi, 2
test cl, cl
jne 0x414ac0
xor eax, eax
jmp 0x414aff
test al, 0x10
jne 0x414a90
mov edx, dword [esp + 0xc]
push ebp
push str.Search_path__s_is_not_a_directory
push 0xffffffffffffffff
push edx
jmp 0x414c0a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x414b41
mov eax, dword [ebp + 8]
test eax, eax
je 0x414b1a
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp + 8], eax
je 0x414b1a
mov eax, dword [eax]
test eax, eax
jne 0x414ab5
push 0x104
call fcn.00432f36
mov esi, eax
add esp, 4
test esi, esi
je 0x414b6e
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 4]
mov dword [esi], 0
rep stosd dword es:[edi], eax
jmp 0x414b70
mov eax, dword [esp + 0x214]
mov ecx, dword [esp + 0xc]
push eax
push str.Search_path__s_already_exists
push 0xfffffffffffffffd
push ecx
call fcn.00413fd0
add esp, 0x10
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x204
ret 8
xor esi, esi
mov edx, esi
lea ecx, [esp + 0x10]
sub edx, ecx
lea eax, [esp + 0x10]
add edx, 4
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x414b80
mov al, byte [esp + 0x218]
mov ecx, dword [esi]
neg al
push 0xc
sbb eax, eax
and eax, 0x4000
or ecx, eax
mov dword [esi], ecx
call fcn.00432f36
add esp, 4
test eax, eax
je 0x414bbd
mov dword [eax], esi
mov dword [eax + 4], 0
mov byte [eax + 8], 1
jmp 0x414bbf
xor eax, eax
cmp dword [ebp], 0
jne 0x414be3
mov dword [ebp], eax
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0xc]
pop edi
inc eax
mov dword [ebp + 0xc], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret 8
mov edx, dword [ebp + 4]
mov dword [edx + 4], eax
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0xc]
pop edi
inc eax
mov dword [ebp + 0xc], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret 8
push ebp
push str.Invalid_search_path__s_specified
push 0xffffffffffffffff
push ecx
call fcn.00413fd0
add esp, 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x204
ret 8