Function at 0x41def0
Capabilities:
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4612fb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478424]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
lea eax, [esp + 0x16c]
push eax
mov edi, edx
xor ebx, ebx
push pe_nt_image_headers32
mov esi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.004220d0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x41df6f
mov dword [esp + 0x14], 0xffffffff
jmp 0x41e15f
cmp dword [edi], 1
je 0x41df80
mov dword [0x47f7ec], 0x80000
jmp 0x41df94
mov ecx, dword [edi + 4]
lea edx, [esp + 0x3c]
push edx
push 0xffffffffffffffff
call fcn.004218d0
mov dword [0x47f7ec], eax
mov eax, dword [esp + 0x3c]
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x18], eax
jle 0x41e0fd
cmp dword [edi], 1
jne 0x41e0dd
mov ecx, dword [edi + 4]
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.004218d0
cmp eax, ebx
mov dword [0x47f7ec], eax
jne 0x41e0f5
mov esi, dword [esp + 0x1c]
mov eax, esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x41dfe3
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00401d40
mov dword [esp + 0x278], ebx
mov bl, 0x5c
lea esi, [esp + 0x20]
call fcn.00410ee0
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41e012
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x28]
call fcn.00404450
mov eax, dword [esp + 0x24]
mov esi, 0x10
cmp dword [esp + 0x38], esi
jae 0x41e03f
lea eax, [esp + 0x24]
xor ebx, ebx
push ebx
push eax
call fcn.00447490
add esp, 8
cmp eax, ebx
jne 0x41e081
cmp dword [esp + 0x38], esi
mov eax, dword [esp + 0x24]
jae 0x41e05d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x41e081
mov ecx, dword [esp + 0x24]
and eax, 0xfffffffe
cmp dword [esp + 0x38], esi
jae 0x41e079
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [esp + 0x278], 0xffffffff
cmp dword [esp + 0x38], esi
jb 0x41e09f
mov edx, dword [esp + 0x24]
push edx
call fcn.0042a2ef
add esp, 4
cmp dword [edi], 1
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jne 0x41e0e9
mov eax, dword [edi + 4]
lea ecx, [esp + 0x40]
push ecx
push eax
mov ecx, ebp
call fcn.00421dc0
cmp eax, ebx
mov dword [0x47f7ec], eax
jne 0x41e0f3
add ebp, 1
xor ebx, ebx
cmp ebp, dword [esp + 0x18]
jge 0x41e0fd
jmp 0x41dfa6
mov dword [0x47f7ec], 0x80000
jmp 0x41e0f5
mov dword [0x47f7ec], 0x80000
xor ebx, ebx
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [edi]
cmp eax, 1
sete cl
cmp cl, bl
je 0x41e129
cmp eax, 1
je 0x41e11a
mov dword [0x47f7ec], 0x80000
jmp 0x41e15f
mov esi, dword [edi + 4]
call fcn.00422070
mov dword [0x47f7ec], eax
jmp 0x41e14d
cmp eax, 2
je 0x41e13a
mov dword [0x47f7f0], 0x80000
jmp 0x41e15f
mov esi, dword [edi + 4]
mov eax, esi
call fcn.004227f0
cmp esi, ebx
mov dword [0x47f7f0], eax
je 0x41e156
push esi
call fcn.0042a2ef
add esp, 4
push edi
call fcn.0042a2ef
add esp, 4
lea edx, [esp + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00445276
add esp, 0x268
ret