Function at 0x41e7a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x78
push esi
push edi
push 0x12b
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push 0
push eax
mov dword [ebp - 0x4d4], ebx
call fcn.004811a0
add esp, 0xc
call fcn.00435f20
lea edx, [ebp - 0x130]
lea ecx, [eax + 0x144]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41e7f4
cmp byte [ebp - 0x130], al
je 0x41e839
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e812
sub ecx, edx
cmp byte [ebp + ecx - 0x131], 0x5c
jne 0x41e839
dec ecx
cmp ecx, 0x12c
jae 0x41ea64
mov byte [ebp + ecx - 0x130], al
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x390]
push eax
push 0x12c
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41ea43
lea eax, [ebp - 0x260]
push eax
push 0x12c
call esi
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e873
sub ecx, edx
lea eax, [ebp - 0x260]
push ecx
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00486932
add esp, 0xc
test eax, eax
je 0x41e9d6
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x4d0]
push eax
push 0x4a0f28
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e8eb
nop dword [eax]
test byte [ebp - 0x4d0], 0x10
je 0x41e8d6
cmp byte [ebp - 0x4a4], 0x2e
jne 0x41e95e
lea eax, [ebp - 0x4d0]
push eax
push esi
call ebx
test eax, eax
jne 0x41e8c0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x4d0]
push eax
push 0x4a0f28
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x41e92d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x4d0], 0x10
jne 0x41e918
lea eax, [ebp - 0x4a4]
push eax
call edi
lea eax, [ebp - 0x4d0]
push eax
push esi
call ebx
test eax, eax
jne 0x41e906
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x390]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call eax
mov edx, dword [ebp - 0x4d4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00435f20
test eax, eax
je 0x41ea43
call fcn.00435f20
cmp dword [eax], 0
je 0x41ea43
mov eax, dword [0x4edee0]
test eax, eax
je 0x41e991
mov esi, dword [eax + 0x190]
jmp 0x41e997
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x41e9a9
call fcn.00435f20
mov ecx, dword [eax]
jmp 0x41e9ab
xor ecx, ecx
mov edx, dword [ebp - 0x4d4]
mov eax, 0x4b1aef
push str.Error_deleting_directory:_Sub_directory_exists_in_directory__s
test edx, edx
cmovne eax, edx
push eax
push str.Error_deleting_directory:_Sub_directory_exists_in_directory__s
push dword [0x4edee0]
push esi
push 0
push 0xa3a
jmp 0x41ea37
call fcn.00435f20
test eax, eax
je 0x41ea43
call fcn.00435f20
cmp dword [eax], 0
je 0x41ea43
mov eax, dword [0x4edee0]
test eax, eax
je 0x41e9fa
mov esi, dword [eax + 0x190]
jmp 0x41ea00
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x41ea12
call fcn.00435f20
mov ecx, dword [eax]
jmp 0x41ea14
xor ecx, ecx
push str.Error_deleting_directory:_Bad_directory__s_specified
test ebx, ebx
mov eax, 0x4b1aef
cmovne eax, ebx
push eax
push str.Error_deleting_directory:_Bad_directory__s_specified
push dword [0x4edee0]
push esi
push 0
push 0xa3d
push str.D:MyProjectsProPilotLibMisc.c
push 3
call ecx
add esp, 0x24
lea eax, [ebp - 0x390]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
mov esp, ebp
pop ebp
ret
call fcn.0047f54c
int3